public function field()
    {
        $field = $this->getConfig('field');
        if (!$this->getConfig('aliasField')) {
            return $field;
        }

        $repository = $this->manager()->getRepository();
        if (!method_exists($repository, 'aliasField')) {
            return $field;
        }

        if (is_string($field)) {
            return $repository->aliasField($field);
        }

        $return = [];
        foreach ($field as $fld) {
            $return[] = $repository->aliasField($fld);
        }

        return $return;
    }
public function field()
    {
        $field = $this->getConfig('field');
        if (!$this->getConfig('aliasField')) {
            return $field;
        }

        $repository = $this->manager()->getRepository();
        if (!method_exists($repository, 'aliasField')) {
            return $field;
        }

        if (is_string($field)) {
            return $repository->aliasField($field);
        }

        $return = [];
        foreach ($field as $fld) {
            $return[] = $repository->aliasField($fld);
        }

        return $return;
    }
public function field ( ) { $ field = $ this -> getConfig ( 'field' ) ; if ( ! $ this -> getConfig ( 'aliasField' ) ) { return $ field ; } $ repository = $ this -> manager ( ) -> getRepository ( ) ; if ( ! method_exists ( $ repository , 'aliasField' ) ) { return $ field ; } if ( is_string ( $ field ) ) { return $ repository -> aliasField ( $ field ) ; } $ return = [ ] ; foreach ( $ field as $ fld ) { $ return [ ] = $ repository -> aliasField ( $ fld ) ; } return $ return ; }
Get the database field name.

@deprecated Use fields() instead.
@return string|array
Get the database field name .