public function Save($post) { $success = false; $success = parent::Save($post, 'contact'); //$this->SendContactMail(); return $success; }
public function Save($post) { $success = false; // Keeping the apiary_id in memory before sending data to the parent method $apiary_id = $post['apiary_id']; unset($post['apiary_id']); $success = parent::Save($post, 'beehive'); if ($this->_id != null) { $apiary = ApiaryRepository::FindById($apiary_id); $apiary->ownBeehive[] = $this->_entity; //TODO: See what we do with saving functionalities //$saved_apiary_id = ApiaryFactory::Save($apiary); $saved_apiary_id = Database::Save($apiary); if (isset($this->_id) && isset($saved_apiary_id)) { $success = true; } } return $success; }
public function Save($data) { return parent::Save($data, 'post'); }
public function Save($data) { return parent::Save($data, 'apiary'); }