eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::getChildren PHP Method

getChildren() public method

Returns data for the first level children of the location identified by given $locationId.
public getChildren ( mixed $locationId ) : array
$locationId mixed
return array
    public function getChildren($locationId)
    {
        $query = $this->handler->createSelectQuery();
        $query->select('*')->from($this->handler->quoteTable('ezcontentobject_tree'))->where($query->expr->eq($this->handler->quoteColumn('parent_node_id', 'ezcontentobject_tree'), $query->bindValue($locationId, null, \PDO::PARAM_INT)));
        $statement = $query->prepare();
        $statement->execute();
        return $statement->fetchAll(\PDO::FETCH_ASSOC);
    }