FOS\UserBundle\Document\UserManager::getFieldNameFromPropertyPath PHP Méthode

getFieldNameFromPropertyPath() protected méthode

E.g. document.someVal -> document user.emails -> user username -> username
protected getFieldNameFromPropertyPath ( string $field ) : string
$field string
Résultat string
    protected function getFieldNameFromPropertyPath($field)
    {
        $pieces = explode('.', $field);
        return $pieces[0];
    }