Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Bad relations builds in a Many-to-Many Relational Behavior

View Parsed - Show only message text

MIME-Version: 1.0
Received: by 10.100.42.4 with SMTP id p4mr1215316anp.2.1246524689989; Thu, 02 
	Jul 2009 01:51:29 -0700 (PDT)
Date: Thu, 2 Jul 2009 01:51:29 -0700 (PDT)
X-IP: 80.35.237.88
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) 
	Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11,gzip(gfe),gzip(gfe)
Message-ID: <8f161ff0-a58a-4d0d-8917-34b0645f023c@s6g2000vbp.googlegroups.com>
Subject: Bad relations builds in a Many-to-Many Relational Behavior
From: josetonyp <joseto...@gmail.com>
To: doctrine-dev <doctrine-dev@googlegroups.com>
Cc: Marcos Labad <mar...@acilia.es>, Alejandro Glejberman <alejan...@acilia.es>, 
	Raul Barral Tamayo <rbar...@condenet.es>, Rafael Martinez <rmarti...@condenet.es>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google