FOS\UserBundle\Document\UserManager::getFieldNameFromPropertyPath PHP 메소드

getFieldNameFromPropertyPath() 보호된 메소드

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