Knp\Bundle\KnpBundlesBundle\Repository\BundleRepository::getStaleBundlesForIndexing PHP Method

getStaleBundlesForIndexing() public method

    public function getStaleBundlesForIndexing()
    {
        return $this->createQueryBuilder('bundle')->leftJoin('bundle.owner', 'owner')->where('bundle.indexedAt IS NULL OR bundle.indexedAt < bundle.updatedAt')->getQuery()->getResult();
    }