public function save()
 {
     // We have overwritten the save method, so we call the parent save to ensure that the
     // data is saved. We want this to happen before be save the meta-data so we can use $this->id;
     parent::save();
     $this->saveMetaData();
 }
 public function save()
 {
     $exists = self::scalar('SELECT `user_id` FROM {table} WHERE `user_id` = %s && `organisation_id` = %s', $this->user_id, $this->organisation_id);
     if (!$exists) {
         return parent::save();
     }
     return null;
 }
Esempio n. 3
0
 public function save(array $data = null)
 {
     $this->clean();
     parent::save($data);
 }
Esempio n. 4
0
 public function save(array $data = null)
 {
     parent::save($data);
     $this->updateData();
 }