-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement new field type #34
Comments
@ElectricMaxxx ping |
@bigfoot90 i can't really follow the idea of that type. I would just implement and own type called Or do i have both then? You would have some time to have a look into the code for that and create a PR? But it should be done in the library itself. |
@ElectricMaxxx The mapping are inside the type itself. I'm not 100% sure that this work, I have to investigate further. |
And also I don't know how to manage extra common fields. |
I'm not a |
oh ... i forgot the common fields, which are working on the same way as the identifiers do. The other question would be: is there an equal mechanism on the other implementations? (phpcr-odm @dbu?) |
i am not aware of good documentation of the UoW. @Ocramius is working on a stand-alone UoW which should be a lot cleaner than what we currently have - and as a side effect should be able to handle cross-system references without any extra libraries. i am not familiar with "common fields" of the orm. maybe @Ocramius can help you here? |
By looking at the initial post (no time to follow all the thread, sorry!) I don't think there should be custom definitions for hopping from ORM to ODM to PHPCR-ODM or such. If |
If you need a UoW specification, please use https://github.com/Ocramius/ChangeSet/tree/6dd6525b01d633853f0643d872e9c2efc1a82e19/features/unit-of-work |
@dbu @Ocramius the thing i was asking fo had been the @bigfoot90 was asking for a type defintion to persist the the referenced document of an entity and its uuid in one property. The |
@Ocramius Thanks for reference. @ElectricMaxxx You have centered the point of question. Declaring |
I would propose to implement a custom field type, so you don't have to declare
$uuid
property explicitly.Old mapping:
New mapping:
The text was updated successfully, but these errors were encountered: