This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Pure M:N Form
Pure M:N Form [message #103327] Fri, 30 July 2010 21:46
DBA_Alex  is currently offline DBA_Alex
Messages: 257
Registered: July 2008
Location: North Carolina, USA
Faithful Member
I'm trying to build a form that is based off of the following schema:

ChecksheetItem:
  actAs:
    Blameable:
      listener:  BlameableSymfony
      columns:
        created:  {  name:  created_by, type:  integer, length:  10, notnull:  false }
        updated:  {  name:  updated_by, type:  integer, length:  10, notnull:  false }
    Timestampable:
      columns:
        created:  {  name:  created_at, type:  timestamp, notnull:  false }
        updated:  {  name:  updated_at, type:  timestamp, notnull:  false }
  columns:
    item_description:  {  type:  string(85) }
  relations:
    TrainingSession:  { class:  TrainingSession, refClass:  SessionChecksheet, local:  checksheet_id, foreign:  training_session_id}
    Subject:  { class:  Subject, refClass:  SubjectChecksheet, local:  checksheet_id, foreign:  subject_id}
  indexes:
SessionChecksheet:
  actAs:
    Blameable:
      listener:  BlameableSymfony
      columns:
        created:  {  name:  created_by, type:  integer, length:  10, notnull:  false }
        updated:  {  name:  updated_by, type:  integer, length:  10, notnull:  false }
    Timestampable:
      columns:
        created:  {  name:  created_at, type:  timestamp, notnull:  false }
        updated:  {  name:  updated_at, type:  timestamp, notnull:  false }
  columns:
    session_id:  {  type:  integer(19), primary:  true, notnull:  true }
    checksheet_id:  {  type:  integer(19), primary:  true, notnull:  true }
    completed:  {  type:  boolean(3) }
  relations:
    ChecksheetId:  { class:  ChecksheetItem, local:  checksheet_id, foreign:  id, foreignAlias:  SessionChecksheetChecksheetIdChecksheetItemId }
    SessionId:  { class:  TrainingSession, local:  session_id, foreign:  id, foreignAlias:  SessionChecksheetSessionIdTrainingSessionId }
  indexes:
TrainingSession:
  actAs:
    Blameable:
      listener:  BlameableSymfony
      columns:
        created:  {  name:  created_by, type:  integer, length:  10, notnull:  false }
        updated:  {  name:  updated_by, type:  integer, length:  10, notnull:  false }
    Timestampable:
      columns:
        created:  {  name:  created_at, type:  timestamp, notnull:  false }
        updated:  {  name:  updated_at, type:  timestamp, notnull:  false }
  columns:
    session_subject:  {  type:  integer(19) }
    session_date:  {  type:  date }
    session_duration:  {  type:  integer(10) }
    session_start:  {  type:  time }
    session_end:  {  type:  time }
  relations:
    SessionSubject:  { class:  SubjectRevision, local:  session_subject, foreign:  id, foreignAlias:  TrainingSessionSessionSubjectSubjectRevisionId }
    ChecksheetItem:  { class:  ChecksheetItem, refClass:  SessionChecksheet, local:  session_id, foreign:  checksheet_item_id}
    Student:  { class:  Student, refClass:  SessionStudent, local:  session_id, foreign:  student_id}
    Trainer:  { class:  Trainer, refClass:  SessionTrainer, local:  session_id, foreign:  trainer_id}
  indexes:


I want the form to only be the list of training checklist items for a given session with a tickbox beside each item to indicate completion. I have not done something like this before with the form framework, and haven't seen an example of one in my searching. Anyone have a suggestion to create this form?

Thanks Very Happy


Currently Using
---------------------------
Symfony 1.4/Doctrine 1.2
MySQL 5.1
Previous Topic:one model with different forms
Next Topic:symfony 1.4 and ssl
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software