$this->product->getId() will give you the auto increment ID of the row just inserted
2009/10/6 Josh <joshlaro...@gmail.com> > > 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(); > > echo $obj->getProductId(); // product.product_id: int(11), > autoincrement, primary key. > > The echo yields nothing though the object is saved to a row in the > table. > > Thoughts? > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---