-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ClassInfo::classes_for_file(); to collect classes #59
Comments
If hooking into requireDefaultRecords only once... I'd suggest we switch to flushable, and implement flush() method. |
hm.. I understand what you mean. But. only on dev/build the database fields are generated and the extensions are coupled.. So triggering on flush would require or a second action or require to always use dev/build?flush=all/1 Or am I wrong about what flush is doing? |
So in fact we need a MyObject implements DevBuildable ;) |
flush is running on flush=all indeed. So there would be an extra check for if it's in the build process. Still, I'd think it's cleaner. And yes.. I raised an issue about that on the framework ;) |
There's requireDefaultRecords, Flushable, but not an option to hook into the actual build :'( |
Note2Self: just hook into dev/build once and traverse the enabled modules: https://github.com/silverstripe/silverstripe-framework/blob/3/dev/DevBuildController.php here we can also get the cached orm before the tagging starts for #58 |
This means :
The text was updated successfully, but these errors were encountered: