Esempio n. 1
0
 /**
  * Suppression d'un enregistrement
  *
  * @return mixed
  */
 public function delete()
 {
     return $this->table->where('id', $this->id)->delete();
 }
Esempio n. 2
0
 /**
  * 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);
 }