Welcome Guest, Not a member yet? Register   Sign In
Error Messages in datamapper
#6

[eluser]WanWizard[/eluser]
Quite logical, you're serializing an object. That's why I suggested to var_dump() the $object->error, so you could see what it was.

If you want the array of messages, you need to use
Code:
$subcategory->error->all

Or as a string:
Code:
$subcategory->error->string


Messages In This Thread
Error Messages in datamapper - by El Forum - 04-30-2011, 09:22 AM
Error Messages in datamapper - by El Forum - 04-30-2011, 10:13 AM
Error Messages in datamapper - by El Forum - 05-01-2011, 04:28 PM
Error Messages in datamapper - by El Forum - 05-02-2011, 12:29 AM
Error Messages in datamapper - by El Forum - 05-07-2011, 02:20 PM
Error Messages in datamapper - by El Forum - 05-07-2011, 05:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB