-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
[RFC] Collection Field Type #715
Comments
you mean that phpcr-odm would automatically add a namespace and a naming scheme for them so that they can be grouped? |
Yeah, and perhaps add an annotation similar to I have basically gotten this working using https://github.com/symfony-cmf/content-type/pull/10/files#diff-b0f1a29ae3945b9bacfc82b0b991d60bR72 But array keys are not preserved, and I guess it might be a useful feature of PHPCR-ODM in general. |
in our application, i used naming patterns for specific children to group them. i think it could indeed be useful to support this specifically. some limitations i see:
|
Not sure I understand the problem? In the case of
In my current implementation array keys are not preserved (
Well, |
I wonder if it would be possible to create a field type which would map a collection of child nodes to the property.
The difference between this and the
@Children
mapping is that these children would be directly related to the property, and stored in PHPCR as follows:The text was updated successfully, but these errors were encountered: