コード例 #1
0
 public function updateExistProfile(EiProfil $profile, Doctrine_Connection $conn = null)
 {
     if ($conn == null) {
         $conn = Doctrine_Manager::connection();
     }
     $conn->createQuery()->update('EiProfil')->set('name', '?', $profile->getName())->set('base_url', '?', $profile->getBaseUrl())->set('description', '?', $profile->getDescription())->set('is_default', '?', $profile->getIsDefault())->set('parent_id', '?', $profile->getParentId())->set('parent_ref', '?', $profile->getParentRef())->where('profile_id=? And profile_ref=? ', array($profile->getProfileId(), $profile->getProfileRef()))->execute();
 }