public function loadTrashByLocation($locationId)
{
$query = $this->handler->createSelectQuery();
$query->select('*')->from($this->handler->quoteTable('ezcontentobject_trash'))->where($query->expr->eq($this->handler->quoteColumn('node_id'), $query->bindValue($locationId)));
$statement = $query->prepare();
$statement->execute();
if ($row = $statement->fetch(\PDO::FETCH_ASSOC)) {
return $row;
}
throw new NotFound('trash', $locationId);
}