Entity/OverrideLeadFieldRepository.php
private function getExtendedField($alias)
    {
        $qf = $this->_em->getConnection()->createQueryBuilder();
        $qf->select('lf.id, lf.object, lf.type, lf.alias, lf.field_group as "group", lf.object, lf.label')
            ->from(MAUTIC_TABLE_PREFIX.'lead_fields', 'lf')
            ->where(
                $qf->expr()->andX(
                    $qf->expr()->eq('lf.alias', ':alias'),
                    $qf->expr()->orX(
                        $qf->expr()->eq('lf.object', $qf->expr()->literal('extendedField')),
                        $qf->expr()->eq('lf.object', $qf->expr()->literal('extendedFieldSecure'))
                    )
                )
            )
            ->setParameter('alias', $alias);

        return $qf->execute()->fetch();
    }
private function getExtendedField($alias)
    {
        $qf = $this->_em->getConnection()->createQueryBuilder();
        $qf->select('lf.id, lf.object, lf.type, lf.alias, lf.field_group as "group", lf.object, lf.label')
            ->from(MAUTIC_TABLE_PREFIX.'lead_fields', 'lf')
            ->where(
                $qf->expr()->andX(
                    $qf->expr()->eq('lf.alias', ':alias'),
                    $qf->expr()->orX(
                        $qf->expr()->eq('lf.object', $qf->expr()->literal('extendedField')),
                        $qf->expr()->eq('lf.object', $qf->expr()->literal('extendedFieldSecure'))
                    )
                )
            )
            ->setParameter('alias', $alias);

        return $qf->execute()->fetch();
    }
private function getExtendedField ( $ alias ) { $ qf = $ this -> _em -> getConnection ( ) -> createQueryBuilder ( ) ; $ qf -> select ( 'lf.id, lf.object, lf.type, lf.alias, lf.field_group as "group", lf.object, lf.label' ) -> from ( MAUTIC_TABLE_PREFIX . 'lead_fields' , 'lf' ) -> where ( $ qf -> expr ( ) -> andX ( $ qf -> expr ( ) -> eq ( 'lf.alias' , ':alias' ) , $ qf -> expr ( ) -> orX ( $ qf -> expr ( ) -> eq ( 'lf.object' , $ qf -> expr ( ) -> literal ( 'extendedField' ) ) , $ qf -> expr ( ) -> eq ( 'lf.object' , $ qf -> expr ( ) -> literal ( 'extendedFieldSecure' ) ) ) ) ) -> setParameter ( 'alias' , $ alias ) ; return $ qf -> execute ( ) -> fetch ( ) ; }
Get an extended field given the field alias.

@param string $alias

@return null|array
Get an extended field given the field alias .