lib/public/AppFramework/Db/Mapper.php
/**
	 * Deletes an entity from the table
	 * @param Entity $entity the entity that should be deleted
	 * @return Entity the deleted entity
	 * @since 7.0.0 - return value added in 8.1.0
	 */
Deletes an entity from the table
@param Entity $entity the entity that should be deleted
@return Entity the deleted entity
@since 7.0.0 - return value added in 8.1.0
Deletes an entity from the table @param Entity $entity the entity that should be deleted @return Entity the deleted entity @since 7 . 0 . 0 - return value added in 8 . 1 . 0
public function delete(Entity $entity){
		$sql = 'DELETE FROM `' . $this->tableName . '` WHERE `id` = ?';
		$stmt = $this->execute($sql, [$entity->getId()]);
		$stmt->closeCursor();
		return $entity;
	}
public function delete ( Entity $ entity ) { $ sql = 'DELETE FROM `' . $ this -> tableName . '` WHERE `id` = ?' ; $ stmt = $ this -> execute ( $ sql , [ $ entity -> getId ( ) ] ) ; $ stmt -> closeCursor ( ) ; return $ entity ; }
Deletes an entity from the table
 @param Entity $entity the entity that should be deleted
 @return Entity the deleted entity
 @since 7.0.0 - return value added in 8.1.0
Deletes an entity from the table @param Entity $entity the entity that should be deleted @return Entity the deleted entity @since 7 . 0 . 0 - return value added in 8 . 1 . 0