src/Entity/AbstractCustomFieldRepository.php
public function findByObject($object, $fieldId = null)
    {
        $qb = $this->createQueryBuilder('cf');
        $this->addFindByObject($qb, 'cf', $object, $fieldId);

        return $qb->getQuery()->getResult();
    }
public function findByObject($object, $fieldId = null)
    {
        $qb = $this->createQueryBuilder('cf');
        $this->addFindByObject($qb, 'cf', $object, $fieldId);

        return $qb->getQuery()->getResult();
    }
public function findByObject ( $ object , $ fieldId = null ) { $ qb = $ this -> createQueryBuilder ( 'cf' ) ; $ this -> addFindByObject ( $ qb , 'cf' , $ object , $ fieldId ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Finds EntityCustomFields which point to a specific object.

@param object $object  value to filter for
@param string $fieldId optional

@return \Doctrine\ORM\QueryBuilder $qb
Finds EntityCustomFields which point to a specific object .