Go to Google Groups Home    doctrine-dev
Bad relations builds in a Many-to-Many Relational Behavior

josetonyp <joseto...@gmail.com>

Hi everyone,

Im working in a large scale project and we decide to use symfony as
our framework to build the app. I found interesting things on it and I
working deeply in the symfony way to get the most of it. We are
working in app that have many relations within models, so one model
can has relations with several other models.

I found an error trying to implement this theory as a behavior. I make
a testing app so you can download an run 2 unit test:

file: http://rapidshare.com/files/250975293/error_symfony.tar.gz

./symfony test:unit Object ## Showing the error case
./symfony test:unit Model ## Showing the good symfony static
implementation of a Many-to-Many rel.

The working behavior is in lib/model-enhancement/doctrine/behaviors/
records/CentralObjectRelatedBehavior.class.php

The template is in: lib/model-enhancement/doctrine/behaviors/records/
CentralObjectRelated.class.php

Could you please test this case an tell me if is a misunderstanding of
relations in symfony-doctrine or could be a bug.

thanks for your time!
Jose Antonio Pio