You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
AbsractFileDriver is using the filename to know the managed class.
It's a cool feature because it's allow loading on-demand.
The problem is, that the filename must be the name of the Class.
It should be great to be able to manually map XML/YAML File description to a Class, like :
$drivers->addMappingFile ( array ( "filename" => "class", "filename2" => "class2") );
This feature is simple to implement, just add a new array inside AbsractFileDriver to know the mapping.
When using the current method with addPaths, parse the folder to get traditional XML/YAML file where filename corresponding to classname and add it to the mapping array.
AbsractFileDriver->getAllClassNames () just return value of mapping array.
The mapping array is store inside cache.
With this new feature, it allow developers to create a pretty folder that contains entities mapping.
Armetiz.
The text was updated successfully, but these errors were encountered:
Jira issue originally created by user armetiz:
Hi there,
AbsractFileDriver is using the filename to know the managed class.
It's a cool feature because it's allow loading on-demand.
The problem is, that the filename must be the name of the Class.
It should be great to be able to manually map XML/YAML File description to a Class, like :
$drivers->addMappingFile ( array ( "filename" => "class", "filename2" => "class2") );
This feature is simple to implement, just add a new array inside AbsractFileDriver to know the mapping.
When using the current method with addPaths, parse the folder to get traditional XML/YAML file where filename corresponding to classname and add it to the mapping array.
AbsractFileDriver->getAllClassNames () just return value of mapping array.
The mapping array is store inside cache.
With this new feature, it allow developers to create a pretty folder that contains entities mapping.
Armetiz.
The text was updated successfully, but these errors were encountered: