Welcome Guest, Not a member yet? Register   Sign In
Code separation with CI + Datamapper
#6

[eluser]WanWizard[/eluser]
No,

Code:
// insert the book for this author
$book->save($author);
This saves the book (inserts it as there is no id present), and saves the relationship to the $author object.

Off course, if you need to save relations, you need both objects to be able to do so.


Messages In This Thread
Code separation with CI + Datamapper - by El Forum - 03-18-2011, 03:59 PM
Code separation with CI + Datamapper - by El Forum - 03-18-2011, 04:29 PM
Code separation with CI + Datamapper - by El Forum - 03-22-2011, 02:43 AM
Code separation with CI + Datamapper - by El Forum - 03-22-2011, 02:56 AM
Code separation with CI + Datamapper - by El Forum - 03-22-2011, 03:06 AM
Code separation with CI + Datamapper - by El Forum - 03-22-2011, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB