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 'attachment' table.
6
 *
7
 *
8
 * This class was autogenerated by Propel 1.4.2 on:
9
 *
10
 * Fri Aug  5 09:39:39 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 AttachmentTableMap extends TableMap {
21
 
22
	/**
23
	 * The (dot-path) name of this class
24
	 */
25
	const CLASS_NAME = 'lib.model.map.AttachmentTableMap';
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('attachment');
38
		$this->setPhpName('Attachment');
39
		$this->setClassname('Attachment');
40
		$this->setPackage('lib.model');
41
		$this->setUseIdGenerator(true);
42
		// columns
43
		$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
44
		$this->addForeignKey('ARTICLE_ID', 'ArticleId', 'INTEGER', 'article', 'ID', false, null, null);
45
		$this->addColumn('NAME', 'Name', 'VARCHAR', false, 255, null);
46
		$this->addColumn('FILE', 'File', 'VARCHAR', false, 255, null);
47
		// validators
48
	} // initialize()
49
 
50
	/**
51
	 * Build the RelationMap objects for this table relationships
52
	 */
53
	public function buildRelations()
54
	{
55
    $this->addRelation('Article', 'Article', RelationMap::MANY_TO_ONE, array('article_id' => 'id', ), null, null);
56
	} // buildRelations()
57
 
58
	/**
59
	 *
60
	 * Gets the list of behaviors registered for this table
61
	 *
62
	 * @return array Associative array (name => parameters) of behaviors
63
	 */
64
	public function getBehaviors()
65
	{
66
		return array(
67
			'symfony' => array('form' => 'true', 'filter' => 'true', ),
68
			'symfony_behaviors' => array(),
69
		);
70
	} // getBehaviors()
71
 
72
} // AttachmentTableMap