Are getting error when you save a doctrine object saying primary key violation?Before you save the object you must search if its already there. When you use find it uses the primary key.public function saveFamilyDetails($form) {$employeeFamilyDetails = Doctrine::getTable('EmployeeFamilyDetails')->find($form['txtFamilyID']); if(!($employeeFamilyDetails instanceof EmployeeFamilyDetails) ) { $employeeFamilyDetails = new EmployeeFamilyDetails(); } $employeeFamilyDetails->employee_id = $form['txtEmpID']; $
These are some useful symfony commandsCreate a symfony modulephp symfony generate:module orsss mymoduleCreate symfony schema from the databasephp symfony doctrine:build-schemabuild modelsphp symfony doctrine:build-modelinsert the created sqlphp symfony doctrine:insert-sqllist all the back end routesphp symfony app:routes backendpublish assets of a plugin to web directoryphp symfony plugin:publish-assetscreate a sfGuard usersymfony guard:create-user indrakeerthi@gmail.com admin admin poojitha jayasinghebuild