Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
 
4
/**
5
 * This class defines the structure of the 'author' table.
6
 *
7
 *
8
 * This class was autogenerated by Propel 1.4.2 on:
9
 *
10
 * Fri Aug  5 09:39:37 2011
11
 *
12
 *
13
 * This map class is used by Propel to do runtime db structure discovery.
14
 * For example, the createSelectSql() method checks the type of a given column used in an
15
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
16
 * (i.e. if it's a text column type).
17
 *
18
 * @package    lib.model.map
19
 */
20
class AuthorTableMap extends TableMap {
21
 
22
	/**
23
	 * The (dot-path) name of this class
24
	 */
25
	const CLASS_NAME = 'lib.model.map.AuthorTableMap';
26
 
27
	/**
28
	 * Initialize the table attributes, columns and validators
29
	 * Relations are not initialized by this method since they are lazy loaded
30
	 *
31
	 * @return     void
32
	 * @throws     PropelException
33
	 */
34
	public function initialize()
35
	{
36
	  // attributes
37
		$this->setName('author');
38
		$this->setPhpName('Author');
39
		$this->setClassname('Author');
40
		$this->setPackage('lib.model');
41
		$this->setUseIdGenerator(true);
42
		// columns
43
		$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
44
		$this->addColumn('NAME', 'Name', 'VARCHAR', false, 255, null);
45
		// validators
46
	} // initialize()
47
 
48
	/**
49
	 * Build the RelationMap objects for this table relationships
50
	 */
51
	public function buildRelations()
52
	{
53
    $this->addRelation('AuthorArticle', 'AuthorArticle', RelationMap::ONE_TO_MANY, array('id' => 'author_id', ), null, null);
54
	} // buildRelations()
55
 
56
	/**
57
	 *
58
	 * Gets the list of behaviors registered for this table
59
	 *
60
	 * @return array Associative array (name => parameters) of behaviors
61
	 */
62
	public function getBehaviors()
63
	{
64
		return array(
65
			'symfony' => array('form' => 'true', 'filter' => 'true', ),
66
			'symfony_behaviors' => array(),
67
		);
68
	} // getBehaviors()
69
 
70
} // AuthorTableMap