src/Tools/ClassMetadata/ClassMetadata.php
public function getPropertyInfoForField($field)
    {
        if (!$this->loaded) {
            $this->load();
        }

        foreach ($this->propertiesInfos as $name => $infos) {
            if ($infos->getField() == $field) {
                return $infos;
            }
        }

        return false;
    }
public function getPropertyInfoForField($field)
    {
        if (!$this->loaded) {
            $this->load();
        }

        foreach ($this->propertiesInfos as $name => $infos) {
            if ($infos->getField() == $field) {
                return $infos;
            }
        }

        return false;
    }
public function getPropertyInfoForField ( $ field ) { if ( ! $ this -> loaded ) { $ this -> load ( ) ; } foreach ( $ this -> propertiesInfos as $ name => $ infos ) { if ( $ infos -> getField ( ) == $ field ) { return $ infos ; } } return false ; }
Get property info corresponding to a field

@param   string          $field  Field
@return  PropertyInfo
Get property info corresponding to a field