29 lines
711 B
PHP
29 lines
711 B
PHP
<?php
|
|
|
|
namespace Trinity\Bundle\ContentManagerBundle\Model;
|
|
|
|
use PropelObjectCollection;
|
|
use Trinity\Bundle\ContentManagerBundle\Model\om\BaseNodeQuery;
|
|
|
|
class NodeQuery extends BaseNodeQuery
|
|
{
|
|
public static function getReferences(Node $node)
|
|
{
|
|
return self::create()
|
|
->where(sprintf('%s <> ?', NodePeer::ID), $node->getId())
|
|
->where(sprintf('%s <> 1', NodePeer::TREE_LEFT))
|
|
->orderByTreeLeft()
|
|
;
|
|
}
|
|
|
|
/**
|
|
* @param null $con
|
|
* @return array|mixed|PropelObjectCollection
|
|
*/
|
|
public function find($con = null)
|
|
{
|
|
return parent::find($con); // TODO: Change the autogenerated stub
|
|
}
|
|
|
|
}
|