Example #1
0
 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));
 }
Example #2
0
 public function update(Entity $entity)
 {
     $state = ['updated' => time()];
     return parent::update($entity->setState($state));
 }
Example #3
0
 public function update(Entity $entity)
 {
     return parent::update($entity->setState(['updated' => time()]));
 }