SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
symfony                                                                                                                              Open-Source PHP5 MVC Framework
                                                                                                                                                   Agile Development



MODEL                                                                  DATABASE SCHEMA
The database schema is a description of the relational model to do the ORM.
                                                                                                                                 connection attributes
You define the tables, their relations, and the characteristics of their columns.
Symfony's syntax for schemas uses the YAML format.                                                           noXsd - Set it to false if you want your schema to be
Symfony also understands the Propel native XML schema format                                                 validated before code generation takes place.
                                                                                                             defaultIdMethod - If none is provided, then the database's
schema.yml                                                                                                   native method of generating IDs will be used--for example,
located in myproject/config/                                                                                 autoincrement for MySQL, or sequences for PostgreSQL.
                                                                                                             The other possible value is none.
                                                                                                             package - is like a namespace; it determines the path where
                            the first key represents a connection name                                       the generated classes are stored. It defaults to lib/model/,
                                                                                                             but you can change it to organize your model in subpackages.

                  propel:
                    _attributes:    {noXsd: false, defaultIdMethod: none, package: lib.model}
                    blog_article:
                      _attributes: { phpName: Article }
                      id:       {required: true, primaryKey: true, autoIncrement: true}
                      title:     varchar(255)
 tables               content: longvarchar
                      created_at:
                      name:      {type: varchar(50), default: foobar, index: true}
                      group_id: {type: integer, foreignTable: db_group, foreignReference: id}
                    blog_comment:
                                                                               column attributes
                      _attributes: { phpName: Comment }
                                                               type - Column type. The choices are boolean, tinyint,
                      id:                                      smallint, integer, bigint, double, float, real, decimal,
                      article_id:                              char, varchar(size), longvarchar, date, time, timestamp,
                                                               bu_date, bu_timestamp, blob, and clob.
                      author:       varchar(255)               required - Boolean. Set it to true if you want the
                      content:      longvarchar                column to be required.

                      created_at:                              default - Default value.
                                            table attributes
                                                                                                                      primaryKey - Boolean. Set it to true for primary keys.
                                                               phpName - the name of the class
                                                               that will be generated. If you don't                   autoIncrement - Boolean. Set it to true for columns
              empty column type                                mention a phpName for a table, the                     of type integer that need to take an auto-incremented
  Empty columns named id are considered PKs                    name will be the camelCase version                     value.
  id: { type: integer, required: true,                         of the table name.
       primaryKey: true, autoIncrement: true}
                                                                                                                      sequence - Sequence name for databases using
                                                                isI18N - Boolean. Set it to true for                  sequences for autoIncrement columns (for example,
                                                                i18n                                                  PostgreSQL and Oracle).
  Empty columns named XXX_id are
  considered foreign keys                                       i18nTable - name of the i18n table.                   index - Boolean. Set it to true if you want a simple
  foobar_id: {type: integer, foreignTable:                                                                            index or to unique if you want a unique index to be
              db_foobar, foreignReference: id}                                                                        created on the column.
                                                                   Indexes and Unique Indexes
  Empty columns named created_at,                                       Alternative Syntax                            foreignTable - A table name, used to create a foreign
  updated at, created_on and updated_on are                      propel:                                              key to another table.
  considered dates and automatically take the                     blog_article:
                                                                   id:                                                foreignReference - The name of the related column
  timestamp type                                                                                                      if a foreign key is defined via foreignTable.
  created_at: { type: timestamp }                                  title:            varchar(50)
  updated_at: { type: timestamp }                                  created_at:                                        onDelete - Determines the action to trigger when a
                                                                   _indexes:                                          record in a related table is deleted. When set to set
                                                                     my_index:       [title, user_id]                 null, the foreign key column is set to null. When set
                                                                   _uniques:                                          to cascade, the record is deleted. If the database
                                                                     my_other_index: [created_at]                     engine doesn't support the set behavior, the ORM
                                                 i18n                                                                 emulates it. This is relevant only for columns bearing
                              Tables that contain localized content                                                   a foreignTable and a foreignReference.
       Implied i18n                                   Explicit i18n Mechanism                                         isCulture - Boolean. Set it to true for culture columns
        Mechanism             propel:                                                                                 in localized content tables.
  propel:                      db_group:
   db_group:                    _attributes: { isI18N: true, i18nTable: db_group_i18n }
                                                                                                                           Foreign Key Alternative Syntax Applied to
    id:                         id:
                                                                                                                                 Multiple Reference Foreign Key
    created_at:                 created_at:
                                                                                                                           _foreignKeys:
   db_group_i18n:              db_group_i18n:                                                                               my_foreign_key:
    name:     varchar(50)       id:    { type: integer, required: true, primaryKey: true,                                     foreignTable: db_user
                                        foreignTable: db_group, foreignReference: id, onDelete: cascade }                     onDelete:      cascade
                                culture: { isCulture: true, type: varchar(7), required: true,primaryKey: true }               references:
                                name: varchar(50)                                                                              - { local: user_id, foreign: id }
                                                                                                                               - { local: post_id, foreign: id }
 http://andreiabohner.wordpress.com                                                                               This cheat-sheet is not an official part of the symfony documentation

Mais conteúdo relacionado

Mais procurados (19)

Subroutines in perl
Subroutines in perlSubroutines in perl
Subroutines in perl
 
Phpquick
PhpquickPhpquick
Phpquick
 
Active Support Core Extension (2)
Active Support Core Extension (2)Active Support Core Extension (2)
Active Support Core Extension (2)
 
Scalar data types
Scalar data typesScalar data types
Scalar data types
 
What's New In Python 2.5
What's New In Python 2.5What's New In Python 2.5
What's New In Python 2.5
 
Subroutines
SubroutinesSubroutines
Subroutines
 
PHP Course (Basic to Advance)
PHP Course (Basic to Advance)PHP Course (Basic to Advance)
PHP Course (Basic to Advance)
 
Php Learning show
Php Learning showPhp Learning show
Php Learning show
 
CGI With Object Oriented Perl
CGI With Object Oriented PerlCGI With Object Oriented Perl
CGI With Object Oriented Perl
 
Perl Introduction
Perl IntroductionPerl Introduction
Perl Introduction
 
STC 2016 Programming Language Storytime
STC 2016 Programming Language StorytimeSTC 2016 Programming Language Storytime
STC 2016 Programming Language Storytime
 
P H P Part I, By Kian
P H P  Part  I,  By  KianP H P  Part  I,  By  Kian
P H P Part I, By Kian
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
 
Wayfinder Breadcrumbs 1 1
Wayfinder Breadcrumbs 1 1Wayfinder Breadcrumbs 1 1
Wayfinder Breadcrumbs 1 1
 
Playfulness at Work
Playfulness at WorkPlayfulness at Work
Playfulness at Work
 
Intro to Perl and Bioperl
Intro to Perl and BioperlIntro to Perl and Bioperl
Intro to Perl and Bioperl
 
Strings,patterns and regular expressions in perl
Strings,patterns and regular expressions in perlStrings,patterns and regular expressions in perl
Strings,patterns and regular expressions in perl
 
Ruby -the wheel Technology
Ruby -the wheel TechnologyRuby -the wheel Technology
Ruby -the wheel Technology
 
perl usage at database applications
perl usage at database applicationsperl usage at database applications
perl usage at database applications
 

Semelhante a Sfmodelsecondpartrefcard

What's New In Python 2.4
What's New In Python 2.4What's New In Python 2.4
What's New In Python 2.4Richard Jones
 
Using SPMetal for faster SharePoint development
Using SPMetal for faster SharePoint developmentUsing SPMetal for faster SharePoint development
Using SPMetal for faster SharePoint developmentPranav Sharma
 
Object-oriented programming
Object-oriented programmingObject-oriented programming
Object-oriented programmingNeelesh Shukla
 
Using SP Metal for faster share point development
Using SP Metal for faster share point developmentUsing SP Metal for faster share point development
Using SP Metal for faster share point developmentPranav Sharma
 
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونی
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونیاسلاید جلسه ۹ کلاس پایتون برای هکر های قانونی
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونیMohammad Reza Kamalifard
 
LISP: Object Sytstem Lisp
LISP: Object Sytstem LispLISP: Object Sytstem Lisp
LISP: Object Sytstem LispLISP Content
 
Advanced php
Advanced phpAdvanced php
Advanced phphamfu
 
Oops concepts in php
Oops concepts in phpOops concepts in php
Oops concepts in phpCPD INDIA
 
CCF #1: Taking the reins of your data with Hiera 5
CCF #1: Taking the reins of your data with Hiera 5CCF #1: Taking the reins of your data with Hiera 5
CCF #1: Taking the reins of your data with Hiera 5davidmogar
 
Learn c sharp at amc square learning
Learn c sharp at amc square learningLearn c sharp at amc square learning
Learn c sharp at amc square learningASIT Education
 
Drupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsDrupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsLuís Carneiro
 

Semelhante a Sfmodelsecondpartrefcard (20)

CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
Net framework
Net frameworkNet framework
Net framework
 
JVM
JVMJVM
JVM
 
What's New In Python 2.4
What's New In Python 2.4What's New In Python 2.4
What's New In Python 2.4
 
Using SPMetal for faster SharePoint development
Using SPMetal for faster SharePoint developmentUsing SPMetal for faster SharePoint development
Using SPMetal for faster SharePoint development
 
How to write Ruby extensions with Crystal
How to write Ruby extensions with CrystalHow to write Ruby extensions with Crystal
How to write Ruby extensions with Crystal
 
Object-oriented programming
Object-oriented programmingObject-oriented programming
Object-oriented programming
 
Using SP Metal for faster share point development
Using SP Metal for faster share point developmentUsing SP Metal for faster share point development
Using SP Metal for faster share point development
 
Online CPP Homework Help
Online CPP Homework HelpOnline CPP Homework Help
Online CPP Homework Help
 
Symfony ORM
Symfony ORMSymfony ORM
Symfony ORM
 
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونی
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونیاسلاید جلسه ۹ کلاس پایتون برای هکر های قانونی
اسلاید جلسه ۹ کلاس پایتون برای هکر های قانونی
 
LISP: Object Sytstem Lisp
LISP: Object Sytstem LispLISP: Object Sytstem Lisp
LISP: Object Sytstem Lisp
 
LISP:Object System Lisp
LISP:Object System LispLISP:Object System Lisp
LISP:Object System Lisp
 
Advanced php
Advanced phpAdvanced php
Advanced php
 
Oops concepts in php
Oops concepts in phpOops concepts in php
Oops concepts in php
 
Java
JavaJava
Java
 
CCF #1: Taking the reins of your data with Hiera 5
CCF #1: Taking the reins of your data with Hiera 5CCF #1: Taking the reins of your data with Hiera 5
CCF #1: Taking the reins of your data with Hiera 5
 
Learn c sharp at amc square learning
Learn c sharp at amc square learningLearn c sharp at amc square learning
Learn c sharp at amc square learning
 
Drupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First StepsDrupal Camp Porto - Developing with Drupal: First Steps
Drupal Camp Porto - Developing with Drupal: First Steps
 
The Style of C++ 11
The Style of C++ 11The Style of C++ 11
The Style of C++ 11
 

Último

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Sfmodelsecondpartrefcard

  • 1. symfony Open-Source PHP5 MVC Framework Agile Development MODEL DATABASE SCHEMA The database schema is a description of the relational model to do the ORM. connection attributes You define the tables, their relations, and the characteristics of their columns. Symfony's syntax for schemas uses the YAML format. noXsd - Set it to false if you want your schema to be Symfony also understands the Propel native XML schema format validated before code generation takes place. defaultIdMethod - If none is provided, then the database's schema.yml native method of generating IDs will be used--for example, located in myproject/config/ autoincrement for MySQL, or sequences for PostgreSQL. The other possible value is none. package - is like a namespace; it determines the path where the first key represents a connection name the generated classes are stored. It defaults to lib/model/, but you can change it to organize your model in subpackages. propel: _attributes: {noXsd: false, defaultIdMethod: none, package: lib.model} blog_article: _attributes: { phpName: Article } id: {required: true, primaryKey: true, autoIncrement: true} title: varchar(255) tables content: longvarchar created_at: name: {type: varchar(50), default: foobar, index: true} group_id: {type: integer, foreignTable: db_group, foreignReference: id} blog_comment: column attributes _attributes: { phpName: Comment } type - Column type. The choices are boolean, tinyint, id: smallint, integer, bigint, double, float, real, decimal, article_id: char, varchar(size), longvarchar, date, time, timestamp, bu_date, bu_timestamp, blob, and clob. author: varchar(255) required - Boolean. Set it to true if you want the content: longvarchar column to be required. created_at: default - Default value. table attributes primaryKey - Boolean. Set it to true for primary keys. phpName - the name of the class that will be generated. If you don't autoIncrement - Boolean. Set it to true for columns empty column type mention a phpName for a table, the of type integer that need to take an auto-incremented Empty columns named id are considered PKs name will be the camelCase version value. id: { type: integer, required: true, of the table name. primaryKey: true, autoIncrement: true} sequence - Sequence name for databases using isI18N - Boolean. Set it to true for sequences for autoIncrement columns (for example, i18n PostgreSQL and Oracle). Empty columns named XXX_id are considered foreign keys i18nTable - name of the i18n table. index - Boolean. Set it to true if you want a simple foobar_id: {type: integer, foreignTable: index or to unique if you want a unique index to be db_foobar, foreignReference: id} created on the column. Indexes and Unique Indexes Empty columns named created_at, Alternative Syntax foreignTable - A table name, used to create a foreign updated at, created_on and updated_on are propel: key to another table. considered dates and automatically take the blog_article: id: foreignReference - The name of the related column timestamp type if a foreign key is defined via foreignTable. created_at: { type: timestamp } title: varchar(50) updated_at: { type: timestamp } created_at: onDelete - Determines the action to trigger when a _indexes: record in a related table is deleted. When set to set my_index: [title, user_id] null, the foreign key column is set to null. When set _uniques: to cascade, the record is deleted. If the database my_other_index: [created_at] engine doesn't support the set behavior, the ORM i18n emulates it. This is relevant only for columns bearing Tables that contain localized content a foreignTable and a foreignReference. Implied i18n Explicit i18n Mechanism isCulture - Boolean. Set it to true for culture columns Mechanism propel: in localized content tables. propel: db_group: db_group: _attributes: { isI18N: true, i18nTable: db_group_i18n } Foreign Key Alternative Syntax Applied to id: id: Multiple Reference Foreign Key created_at: created_at: _foreignKeys: db_group_i18n: db_group_i18n: my_foreign_key: name: varchar(50) id: { type: integer, required: true, primaryKey: true, foreignTable: db_user foreignTable: db_group, foreignReference: id, onDelete: cascade } onDelete: cascade culture: { isCulture: true, type: varchar(7), required: true,primaryKey: true } references: name: varchar(50) - { local: user_id, foreign: id } - { local: post_id, foreign: id } http://andreiabohner.wordpress.com This cheat-sheet is not an official part of the symfony documentation