FOS\UserBundle\Document\UserManager::getFieldNameFromPropertyPath PHP Method

getFieldNameFromPropertyPath() protected method

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