/** * Suppression d'un enregistrement * * @return mixed */ public function delete() { return $this->table->where('id', $this->id)->delete(); }
/** * Charge le factory Table * * @param string $tableName le nom de la table * * @return Table */ public static function table($tableName) { static::verifyConnection(); return Table::load($tableName, static::$db); }