Skip to content
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

Related hasMany versioning #15

Open
TeckniX opened this issue Apr 23, 2012 · 0 comments
Open

Related hasMany versioning #15

TeckniX opened this issue Apr 23, 2012 · 0 comments

Comments

@TeckniX
Copy link

TeckniX commented Apr 23, 2012

It seems that by default cake does not load behaviors for related models, which makes creating versioning of a related model that is not HABTM difficult.

It seems that following some of the HABTM logic, one could do the same loop to serialize the hasMany arrays and save them in the shadow table.
1 field per relationship and the behavior could be updated to expect those.

Is this valid, or non-relevant, as there is a better way of doing it? I'll be more than happy to fork the file and prompt for a pull request with my changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant