Changeset 11078
- Timestamp:
- 08/24/08 13:53:48 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.0/book/08-Inside-the-Model-Layer.txt
r10189 r11078 91 91 In a `schema.yml` file, the first key represents a connection name. It can contain several tables, each having a set of columns. According to the YAML syntax, the keys end with a colon, and the structure is shown through indentation (one or more spaces, but no tabulations). 92 92 93 A table can have special attributes, including the `phpName` (the name of the class that will be generated). If you don't mention a phpNamefor a table, symfony creates it based on the camelCase version of the table name.93 A table can have special attributes, including the `phpName` (the name of the class that will be generated). If you don't mention a `phpName` for a table, symfony creates it based on the camelCase version of the table name. 94 94 95 95 >**TIP** … … 626 626 propel.builder.AddBehaviors = true // Default value is false 627 627 628 There is no behavior bundled by default in symfony, but they can be installed via plug-ins. Once a behavior plug-in is installed, you can assign the behavior to a class with a single line. For instance, if you install the sfPropelParanoidBehaviorPlugin in your application, you can extend an Articleclass with this behavior by adding the following at the end of the `Article.class.php`:628 There is no behavior bundled by default in symfony, but they can be installed via plug-ins. Once a behavior plug-in is installed, you can assign the behavior to a class with a single line. For instance, if you install the sfPropelParanoidBehaviorPlugin in your application, you can extend an `Article` class with this behavior by adding the following at the end of the `Article.class.php`: 629 629 630 630 [php]