예제 #1
0
파일: User.php 프로젝트: nolanglee/platform
 public function update(Entity $entity)
 {
     $state = ['updated' => time()];
     if ($entity->hasChanged('password')) {
         $state['password'] = $this->hasher->hash($entity->password);
     }
     return parent::update($entity->setState($state));
 }
예제 #2
0
 public function update(Entity $entity)
 {
     $state = ['updated' => time()];
     return parent::update($entity->setState($state));
 }
예제 #3
0
파일: Form.php 프로젝트: gjorgiev/platform
 public function update(Entity $entity)
 {
     return parent::update($entity->setState(['updated' => time()]));
 }