src/PHPDish/Bundle/PostBundle/Model/Category.php
public function getSummary()
    {
        return $this->getPosts()->matching(Criteria::create()
            ->where(Criteria::expr()->isNull('parent'))
            ->andWhere(Criteria::expr()->eq('enabled', true))
        );
    }
public function getSummary()
    {
        return $this->getPosts()->matching(Criteria::create()
            ->where(Criteria::expr()->isNull('parent'))
            ->andWhere(Criteria::expr()->eq('enabled', true))
        );
    }
{@inheritdoc}