src/Model/AbstractMapper.php
public function deleteById($id)
	{
		$sql = "DELETE FROM `$this->tableName` WHERE `$this->pkColName` = :entityId ";

		$stmt = $this->pdo->prepare($sql);
		$stmt->bindParam(':entityId', intval($id), \PDO::PARAM_INT);
		$res = $stmt->execute();

		return ($res !== false && $stmt->rowCount() === 1);
	}
public function deleteById($id)
	{
		$sql = "DELETE FROM `$this->tableName` WHERE `$this->pkColName` = :entityId ";

		$stmt = $this->pdo->prepare($sql);
		$stmt->bindParam(':entityId', intval($id), \PDO::PARAM_INT);
		$res = $stmt->execute();

		return ($res !== false && $stmt->rowCount() === 1);
	}
public function deleteById ( $ id ) { $ sql = "DELETE FROM `$this->tableName` WHERE `$this->pkColName` = :entityId " ; $ stmt = $ this -> pdo -> prepare ( $ sql ) ; $ stmt -> bindParam ( ':entityId' , intval ( $ id ) , \ PDO :: PARAM_INT ) ; $ res = $ stmt -> execute ( ) ; return ( $ res !== false && $ stmt -> rowCount ( ) === 1 ) ; }
Delete record by its identifier.

@param integer $id
@return boolean
Delete record by its identifier .