I just started playing around with an equal nest relation on symfony 1.4.19.
http://docs.doctrine-project.org/projects/doctrine1/en/latest/en/manual/defining-models.html#equal-nest-relations
The implementation and usage of fixtures for some test data is really easy.
But I don't find any documentation about the the standard functionality like ADD a new element or DELETE an element.
As an easy example I have a friend table and a unique nest relation table. There are 3 users connected like this:
A <-> B
A <-> C
How is the "best practice" way to delete the relationship A <-> C ????
I could write a table function that deletes the relation directly. But isn't there some built-in functionality to do something like
- Code: Select all
$a->relationDelete($c)
or something like this?!
So my main question would be if there is some documentation for the handling of unique nest relations ??
Thanks in advance.
Jan
