Extension/DoctrineORMExtension.php
protected function resolveFieldOption(array $fields, $option, $expected = true)
    {
        foreach ($fields as $field) {
            if ($field->getOption($option) === $expected) {
                return $expected;
            }
        }

        return null;
    }
protected function resolveFieldOption(array $fields, $option, $expected = true)
    {
        foreach ($fields as $field) {
            if ($field->getOption($option) === $expected) {
                return $expected;
            }
        }

        return null;
    }
protected function resolveFieldOption ( array $ fields , $ option , $ expected = true ) { foreach ( $ fields as $ field ) { if ( $ field -> getOption ( $ option ) === $ expected ) { return $ expected ; } } return null ; }
Resolves option from fields

@param FieldInterface[] $fields
@param $option
@param mixed $expected
@return mixed
Resolves option from fields