Tuesday, November 9, 2010

Problem with Propel ORM

Programmer Question

Hello



Im using Propel ORM in my development and I have this issue:



$mo = new Category();
$mo->setId(7); // This Id exists
$mo->setDescription('New description!');
$mo->save(); //it should update!


Well, it doesn't updates the values. It throws an exception and says that I cannot insert a duplicate key. Is there a way to go around this?



Hope someone can help,
David



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails