public static function enable()
    {
        Field::macro(self::MACRO_METHOD, function (Field $field) {
            return new static($field->getClassMetadata(), $field->getName());
        });
    }
public static function enable()
    {
        Field::macro(self::MACRO_METHOD, function (Field $field) {
            return new static($field->getClassMetadata(), $field->getName());
        });
    }
public static function enable ( ) { Field :: macro ( self :: MACRO_METHOD , function ( Field $ field ) { return new static ( $ field -> getClassMetadata ( ) , $ field -> getName ( ) ) ; } ) ; }
Enable TreePathSource.
Enable TreePathSource .