Return to Snippet

Revision: 22372
at January 11, 2010 09:39 by yanekk


Initial Code
company:
    _attributes: { phpName: Company }
    id: { type: INTEGER, primaryKey: true, autoIncrement: true, required: true }
    name: { type: VARCHAR, size: 255, required: true }
    contact_id: { type: INTEGER, required: false  }
    _foreignKeys:
      -
        foreignTable: contact
        onDelete:     SET NULL
        references:
          - { local: contact_id, foreign: id }

Initial URL

                                

Initial Description

                                

Initial Title
Symfony -> how to rebuild lost foreign keys during data-load

Initial Tags

                                

Initial Language
PHP