[eluser]Benedikt[/eluser]
Hi,
I have a few questions about the usage of this ORM extension. I hope somebody can help me out here:
1) I have model "Photo" and a model "Album". In Photo I set "Has One Album", in Album I set "Has many Photos". Now let's assume I save the current photo in relation to Album A. In a next step I want to "move" the photo to Album B. Now I read the photo-object and save it again, this time with Album B as relation. Would this update the "1-to-1" relation automatically?
2) I have a user and I have a group. Now I want to define one user of the group as "Head of the group". I added a column "head_of_group" in the relation/join-table (join_group_user). How can I save and query this field? E.g. I want to read the Head of a special group or want the group where the user is the head?
Sorry for the complex questions, but I want to figure this out to see if it's suitable for my project.