Symfony: Control Model->save() function to perform INSERT or UPDATE
Friday, April 4th, 2008In Symfony Framework, Model->save() function is clever enough to determine to use INSERT or UPDATE for the query. But i’ve tried many ways to perform an UPDATE for my record but failed. It keep INSERT new record. Finally i found the solution to control the Model->save() function to perform INSERT or UPDATE.
Just a simple example:-
Assume [...]
