This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
Thursday 18 November 2010 6:11:37 pm - 10 replies
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.
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 ?
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 ?
Yeah, we can do a simple:
if($simpleObj!=null){ ... }
Modified on Sunday 21 November 2010 8:29:39 pm by Thiago Campos Viana
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 ?
Instead of Thiago reply, I'd rather something like :
if( !$obj instanceof TutorialFriendshipObject ) { // Handle and log the error }
You must be logged in to post messages in this topic!