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

[eluser]WanWizard[/eluser]
There is nothing wrong with the Datamapper code, nor with the fields array.
The error is in your code and logic. This error suggests you have a form field called 'id'. You can not set a Datamapper id manually. Every Datamapper model validates the 'id' field before attempting a save operation.

Learn to do some debugging before you ask for help. If you had done that here, you would have spotted the mistake.


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