/** * * @see ApineEntityInterface::delete() */ public function delete() { parent::_destroy(); }
/** * @see EntityInterface::delete() */ public function delete() { if ($this->loaded == 0) { $this->load(); } parent::_destroy(); // Remove from the database }
/** * @see EntityInterface::delete() */ public function delete() { if ($this->loaded == 0) { $this->load(); } $db = new Apine\Core\Database(); $db->delete('apine_users_user_groups', array("user_id" => $this->get_id())); parent::_destroy(); }