eZ Community » Forums » Discussions » A Quick and Friendly Introduction to...
expandshrink

Thursday 18 November 2010 6:11:37 pm - 10 replies

» Read full tutorial

Introduction

In this tutorial we will learn how to use CRUDfeatures by extending eZPersistentObject class, so it will be possible to Create, Read, Update, and Delete objects in the database in a straightforward way, without writing SQL queries.

 

Friday 19 November 2010 1:33:28 am

Great (and friendly) article, Thiago.

Friday 19 November 2010 2:34:40 am

Great (and friendly) article, Thiago.

Thanks! It could not be the best tutorial, but I think it has a good title!

Friday 19 November 2010 9:51:16 am

Great tutorial! Thanks!

Sunday 21 November 2010 12:09:37 pm

Shouldn't the sample code include basic error handling (testing the result of eZPersistentObject::fetchObject against "null" before any further method call), given the intended audience ? blunk.gif Emoticon

Modified on Sunday 21 November 2010 12:11:02 pm by Richard Bayet

Sunday 21 November 2010 8:29:13 pm

Shouldn't the sample code include basic error handling (testing the result of eZPersistentObject::fetchObject against "null" before any further method call), given the intended audience ? blunk.gif Emoticon

Yeah, we can do a simple:

if($simpleObj!=null){
    ...
}

Modified on Sunday 21 November 2010 8:29:39 pm by Thiago Campos Viana

Monday 22 November 2010 10:47:26 pm

Great work. Thanks for a lot for such a masterpiece.

Thursday 25 November 2010 11:09:32 am

Shouldn't the sample code include basic error handling (testing the result of eZPersistentObject::fetchObject against "null" before any further method call), given the intended audience ? blunk.gif Emoticon

Instead of Thiago reply, I'd rather something like :

if( !$obj instanceof TutorialFriendshipObject )
{
    // Handle and log the error
}

Sunday 19 June 2011 12:53:23 pm

Great explanation - very thorough references - thanks!!

Monday 17 September 2012 3:15:18 pm

The reply has been removed because of violation of forum rules.

Wednesday 08 May 2013 2:41:52 pm

a short and good tutorial

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from