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_article' 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 AuthorArticleTableMap extends TableMap {
21
 
22
	/**
23
	 * The (dot-path) name of this class
24
	 */
25
	const CLASS_NAME = 'lib.model.map.AuthorArticleTableMap';
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_article');
38
		$this->setPhpName('AuthorArticle');
39
		$this->setClassname('AuthorArticle');
40
		$this->setPackage('lib.model');
41
		$this->setUseIdGenerator(false);
42
		// columns
43
		$this->addForeignPrimaryKey('AUTHOR_ID', 'AuthorId', 'INTEGER' , 'author', 'ID', true, null, null);
44
		$this->addForeignPrimaryKey('ARTICLE_ID', 'ArticleId', 'INTEGER' , 'article', 'ID', true, null, 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('Author', 'Author', RelationMap::MANY_TO_ONE, array('author_id' => 'id', ), null, null);
54
    $this->addRelation('Article', 'Article', RelationMap::MANY_TO_ONE, array('article_id' => 'id', ), null, null);
55
	} // buildRelations()
56
 
57
	/**
58
	 *
59
	 * Gets the list of behaviors registered for this table
60
	 *
61
	 * @return array Associative array (name => parameters) of behaviors
62
	 */
63
	public function getBehaviors()
64
	{
65
		return array(
66
			'symfony' => array('form' => 'false', 'filter' => 'false', ),
67
			'symfony_behaviors' => array(),
68
		);
69
	} // getBehaviors()
70
 
71
} // AuthorArticleTableMap