Support subpackage when kickstarting model & repository
The kickstart for controllers allows the use of subpackages, this is missing for model and repository.
Updated by Oliver Eglseder about 7 years ago
i would appreciate if you could revive this ticket.
Aside of the current topic, there are some more problems which occured.
I kickstarted an actioncontroller:
./flow kickstart:actioncontroller MyVendor.MyPackage/SubPackage MyTest --generate-related --generate-actions --generate-templates
As result, the actioncontroller got created as expected, but the Repository and Model file locations were outside of the subpackage directory but the annotations included the supackage.
On top of that, the action urls which are built contain the argument supackage as strtolower(subPackageKey). When following the link (
http://flow-test.dev/myvendor.mypackage/mytest/new?%40subpackage=subpackage) i get the exception
Template could not be loaded.
I tried "resource://MyVendor.MyPackage/Private/Templates/subpackage/MyTest/New.html"
because the subpacke-key is not converted to the matching non-lowercase subpackage but taken for building the template path (which does not exist, since "subpackage" is written in CamelCase)
If you need more Feedback, feel free to contact me. (I rarely get notifications from forge)