public function getFieldChoices()
    {
        $fields = [];
        foreach ($this->getMeta()->getFields() as $field) {
            if (!$field->isRelation) {
                continue;
            }
            $fields[] = $field->getName();
        }

        foreach ($this->getMeta()->getReverseRelatedObjects() as $reverseRelatedObject) {
            if ($reverseRelatedObject->relation->fromField->isUnique()) {
                $fields[] = $reverseRelatedObject->relation->fromField->getRelatedQueryName();
            }
        }

        return $fields;
    }
public function getFieldChoices()
    {
        $fields = [];
        foreach ($this->getMeta()->getFields() as $field) {
            if (!$field->isRelation) {
                continue;
            }
            $fields[] = $field->getName();
        }

        foreach ($this->getMeta()->getReverseRelatedObjects() as $reverseRelatedObject) {
            if ($reverseRelatedObject->relation->fromField->isUnique()) {
                $fields[] = $reverseRelatedObject->relation->fromField->getRelatedQueryName();
            }
        }

        return $fields;
    }
public function getFieldChoices ( ) { $ fields = [ ] ; foreach ( $ this -> getMeta ( ) -> getFields ( ) as $ field ) { if ( ! $ field -> isRelation ) { continue ; } $ fields [ ] = $ field -> getName ( ) ; } foreach ( $ this -> getMeta ( ) -> getReverseRelatedObjects ( ) as $ reverseRelatedObject ) { if ( $ reverseRelatedObject -> relation -> fromField -> isUnique ( ) ) { $ fields [ ] = $ reverseRelatedObject -> relation -> fromField -> getRelatedQueryName ( ) ; } } return $ fields ; }
Gets all names for the fields in the query model, inclusing reverse fields.

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Gets all names for the fields in the query model inclusing reverse fields .