Hi Gabo,
i was working with embedforms and i need do this for my forms works well. You need save the record that you want get the ID and after save the record that needs the FK. Look this: $author = new author(); ... (set values for author object) $author->save(); //now you save the book objects with author ID. $book = new book(); $book->setauthor($author); $book->save(); I hope this help you. Bye. Augusto Morais
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.