HI Guys i am new to symfony and i have a simple data model.
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
my schema is as follows
Team:
actAs: { Timestampable: ~ }
columns:
title: { type: string(255), notnull: true }
is_active: { type: boolean, notnull: true, default: false }
TeamMatch:
actAs: { Timestampable: ~ }
columns:
venue_id: { type: integer, notnull: true }
team1_id: { type: integer, notnull: true }
team2_id: { type: integer, notnull: true }
held_at: { type: datetime, notnull: true }
is_active: { type: boolean, notnull: true, default: false }
relations:
Venue: { onDelete: CASCADE, local:venue_id, foreign: id }
Team: { onDelete: CASCADE, local: team1_id, foreign: id }
Team: { onDelete: CASCADE, local: team2_id, foreign: id }
Venue:
actAs: { Timestampable: ~ }
columns:
title: { type: string(255), notnull: true }
country: { type: string(255), notnull: true }
city: { type: string(255), notnull: true }
description: { type: text, notnull: true }
is_active: { type: boolean, notnull: true, default: false }
but my cmatch model only reference team1 and dont show team2 in the
class, and not even in the forms.
Am i doing it right , if not whats the solutions
Regards
MHS
--
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