예제 #1
0
 public function save($conn = null)
 {
     $uuid = myToolkit::customUuid(sfConfig::get('app_uuid_project_length'));
     if ($this->getUuid() == null) {
         $this->setUuid($uuid);
     }
     parent::save($conn);
 }
예제 #2
0
 public function save($con = null)
 {
     if ($this->getUuid() == null || strlen($this->getUuid()) > sfConfig::get('app_uuid_project_length')) {
         $this->setUuid(myToolkit::customUuid(sfConfig::get('app_uuid_project_length')));
     }
     parent::save();
     if (sfContext::getInstance()->getUser()->isAuthenticated()) {
         $user = sfContext::getInstance()->getUser();
         //$user->refreshCredentials();
     }
 }