On Oct 6, 9:41 pm, Josh <joshlaro...@gmail.com> wrote: > Hi all: > > I'm still pretty fresh to Symfony so bear with my newbie questions and > confusions. > > Here's the deal: > > $this->product = new Product; // from BaseProduct::Product > > $obj = $this->product->save(); >
As far as I can tell - saving a record does not return the record, so in the case of: $obj = $this->product->save(); $obj == null. If you simply use: $this->product->save(); echo $this->product->getProductId(); You might see something... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 -~----------~----~----~----~------~----~------~--~---