Hi Matt,
Thank you for your prompt response, wel i was doing the
same and it was actually the cache which wassnt making it right for
me , and it wasnt clearing the cache .
as my modules were fresh so i took a rish of deleting them
and creating new ones and it worked,
Thank you
MHs
On Feb 12, 4:37 pm, Matt Gibson <[email protected]> wrote:
> On 12 Feb 2011, at 07:58, Ali wrote:
>
> > There is a Team model and Match model , and a match is played by two
> > teams i want to store the date and venue which is another Model Venue
>
> > ...
> > but my cmatch model only reference team1 and dont show team2 in the
> > class, and not even in the forms.
>
> Bear in mind I'm no expert here, just a beginner myself. But I think you
> could try specifying the class name and changing the relation names, or
> adding an alias on the relations, to let the system know how you'd like to
> refer to the two teams. Either this:
>
>
>
> > relations:
> > Venue: { onDelete: CASCADE, local:venue_id, foreign: id }
> > Team1: { class: Team, onDelete: CASCADE, local: team1_id, foreign: id }
> > Team2: { class: Team, onDelete: CASCADE, local: team2_id, foreign: id }
>
> or this:
>
> > relations:
> > Venue: { onDelete: CASCADE, local:venue_id, foreign: id }
> > Team: { alias: Team1, onDelete: CASCADE, local: team1_id, foreign: id }
> > Team: { alias: Team2, onDelete: CASCADE, local: team2_id, foreign: id }
>
> I'm sure someone more knowledgable will dive in to correct me, or say which
> is better. From what I remember, when I was mucking around with this stuff,
> it's important to clear the Symfony cache before diving back into the admin
> interface after regenerating your models, otherwise things get confused.
>
> Matt
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en