-
- 119 Posts
Hi!
I'm trying to write some error handling code and I need to know what getObject will return if it doesn't find the requested resource. Does it just return false?
Thanks!
-
- 24,544 Posts
No, getObject() returns null on failure. getCollection() returns an empty array on failure.
-
- 119 Posts
What about $resource->save(); ?
-
- 24,544 Posts
save() returns true/false in all the cases I'm aware of.