Welcome Guest, Not a member yet? Register   Sign In
changing object in loop in Datamapper ORM to save
#4

[eluser]WanWizard[/eluser]
For starters, not every Datamapper object property is a table column, so using get_object_vars() doesn't work. If you need a list of table columns, use the $object->fields array.

And second, a statement like "save() doesn't work" isn't really informative. What doesn't work? Any error messages? What have you tried to debug it?


Messages In This Thread
changing object in loop in Datamapper ORM to save - by El Forum - 05-11-2011, 12:20 PM
changing object in loop in Datamapper ORM to save - by El Forum - 05-12-2011, 05:43 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 02:30 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 02:36 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 05:00 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 06:37 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 08:46 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 08:57 AM
changing object in loop in Datamapper ORM to save - by El Forum - 05-13-2011, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB