コード例 #1
0
ファイル: SqlUnity.php プロジェクト: papac/framework
 /**
  * Suppression d'un enregistrement
  *
  * @return mixed
  */
 public function delete()
 {
     return $this->table->where('id', $this->id)->delete();
 }
コード例 #2
0
ファイル: Database.php プロジェクト: papac/framework
 /**
  * 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);
 }