Beispiel #1
0
 public function beforeSave($insert)
 {
     if (parent::beforeSave($insert)) {
         if ($this->isNewRecord) {
             $this->token = U::generateRandomString(16);
         }
         return true;
     }
     return false;
 }