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
Inspired by @Big-Shark idea. We can generate stub collections for each model on «model:build» action.
classBookCollectionextendsObjectCollection {}
It will allow to replace ChildArticle[]|ObjectCollection with BookCollection from phpdoc of find*() methods. Also, it will allow to restrict returned type if you will use php7 (in user defined functions/methods and in generated Base models).
The text was updated successfully, but these errors were encountered:
SCIF
changed the title
«Typed» collections
What about introduce «typed» collections?
Jun 28, 2015
SCIF
changed the title
What about introduce «typed» collections?
RFC: What about introduce «typed» collections?
Jun 28, 2015
Inspired by @Big-Shark idea. We can generate stub collections for each model on «model:build» action.
It will allow to replace
ChildArticle[]|ObjectCollection
withBookCollection
from phpdoc offind*()
methods. Also, it will allow to restrict returned type if you will use php7 (in user defined functions/methods and in generated Base models).The text was updated successfully, but these errors were encountered: