public function getHiringOrganizationsCursor(OrganizationInterface $organization)
    {
        $qb = $this->createQueryBuilder();
        $qb->field('parent')->equals($organization->getId());
        $qb->field('isDraft')->equals(false);
        $q  = $qb->getQuery();
        $cursor = $q->execute();

        return $cursor;
    }
public function getHiringOrganizationsCursor(OrganizationInterface $organization)
    {
        $qb = $this->createQueryBuilder();
        $qb->field('parent')->equals($organization->getId());
        $qb->field('isDraft')->equals(false);
        $q  = $qb->getQuery();
        $cursor = $q->execute();

        return $cursor;
    }
public function getHiringOrganizationsCursor ( OrganizationInterface $ organization ) { $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> field ( 'parent' ) -> equals ( $ organization -> getId ( ) ) ; $ qb -> field ( 'isDraft' ) -> equals ( false ) ; $ q = $ qb -> getQuery ( ) ; $ cursor = $ q -> execute ( ) ; return $ cursor ; }
Gets a cursor for all hiring organizations.

@param OrganizationInterface $organization parent organization

@return \Doctrine\ODM\MongoDB\Cursor
@usedBy \Organizations\Entity\Organization::getHiringOrganizations()
@since 0.18
Gets a cursor for all hiring organizations .