Doctrine EQUAL NEST Documentation???

About symfony tutorials, symfony book and API documentation.

Doctrine EQUAL NEST Documentation???

Postby JayR » Sun Nov 18, 2012 2:02 am

Hi,

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
JayR
Junior Member
 
Posts: 18
Joined: Mon Nov 09, 2009 11:49 am

Re: Doctrine EQUAL NEST Documentation???

Postby JayR » Tue Nov 20, 2012 11:31 am

Just to answer my own question, and hopefully help someone else....
It seems that the handling of (equal) nested relations is not at all (or extremly poor) documented.
But that is not the biggest problem. I ran into a bug that makes this "feature" unusable. At least for my symfony 1.4.19 project.
It is documented here: http://www.doctrine-project.org/jira/browse/DC-329

My solution for the moment is to NOT use the doctrine equal feature and use my own table getter functions that simulate the equal features.
Hopefully this gets fixed soon, the feature would be really cool.

Best regards,
Jan
JayR
Junior Member
 
Posts: 18
Joined: Mon Nov 09, 2009 11:49 am


Return to Documentation

Who is online

Users browsing this forum: No registered users and 1 guest