public function loadLocationDataByContent($contentId, $rootLocationId = null) { $query = $this->handler->createSelectQuery(); $query->select('*')->from($this->handler->quoteTable('ezcontentobject_tree'))->where($query->expr->eq($this->handler->quoteColumn('contentobject_id'), $query->bindValue($contentId))); if ($rootLocationId !== null) { $this->applySubtreeLimitation($query, $rootLocationId); } $statement = $query->prepare(); $statement->execute(); return $statement->fetchAll(\PDO::FETCH_ASSOC); }