Author: sevein
Date: Fri Jul 22 13:13:14 2011
New Revision: 9350

Log:
Commit tablemap changes

Added:
   trunk/lib/model/map/RightsI18nTableMap.php
   trunk/lib/model/map/RightsTableMap.php
Deleted:
   trunk/lib/model/map/RightI18nTableMap.php
   trunk/lib/model/map/RightTableMap.php

Added: trunk/lib/model/map/RightsI18nTableMap.php
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/lib/model/map/RightsI18nTableMap.php  Fri Jul 22 13:13:14 2011        
(r9350)
@@ -0,0 +1,53 @@
+<?php
+
+
+/**
+ * This class defines the structure of the 'rights_i18n' table.
+ *
+ *
+ *
+ * This map class is used by Propel to do runtime db structure discovery.
+ * For example, the createSelectSql() method checks the type of a given column 
used in an
+ * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY 
case-insensitive
+ * (i.e. if it's a text column type).
+ *
+ * @package    lib.model.map
+ */
+class RightsI18nTableMap extends TableMap {
+
+       /**
+        * The (dot-path) name of this class
+        */
+       const CLASS_NAME = 'lib.model.map.RightsI18nTableMap';
+
+       /**
+        * Initialize the table attributes, columns and validators
+        * Relations are not initialized by this method since they are lazy 
loaded
+        *
+        * @return     void
+        * @throws     PropelException
+        */
+       public function initialize()
+       {
+         // attributes
+               $this->setName('rights_i18n');
+               $this->setPhpName('rightsI18n');
+               $this->setClassname('QubitRightsI18n');
+               $this->setPackage('lib.model');
+               $this->setUseIdGenerator(false);
+               // columns
+               $this->addColumn('COPYRIGHT_NOTE', 'copyrightNote', 
'LONGVARCHAR', false, null, null);
+               $this->addForeignPrimaryKey('ID', 'id', 'INTEGER' , 'rights', 
'ID', true, null, null);
+               $this->addPrimaryKey('CULTURE', 'culture', 'VARCHAR', true, 7, 
null);
+               // validators
+       } // initialize()
+
+       /**
+        * Build the RelationMap objects for this table relationships
+        */
+       public function buildRelations()
+       {
+    $this->addRelation('rights', 'rights', RelationMap::MANY_TO_ONE, 
array('id' => 'id', ), 'CASCADE', null);
+       } // buildRelations()
+
+} // RightsI18nTableMap

Added: trunk/lib/model/map/RightsTableMap.php
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/lib/model/map/RightsTableMap.php      Fri Jul 22 13:13:14 2011        
(r9350)
@@ -0,0 +1,59 @@
+<?php
+
+
+/**
+ * This class defines the structure of the 'rights' table.
+ *
+ *
+ *
+ * This map class is used by Propel to do runtime db structure discovery.
+ * For example, the createSelectSql() method checks the type of a given column 
used in an
+ * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY 
case-insensitive
+ * (i.e. if it's a text column type).
+ *
+ * @package    lib.model.map
+ */
+class RightsTableMap extends TableMap {
+
+       /**
+        * The (dot-path) name of this class
+        */
+       const CLASS_NAME = 'lib.model.map.RightsTableMap';
+
+       /**
+        * Initialize the table attributes, columns and validators
+        * Relations are not initialized by this method since they are lazy 
loaded
+        *
+        * @return     void
+        * @throws     PropelException
+        */
+       public function initialize()
+       {
+         // attributes
+               $this->setName('rights');
+               $this->setPhpName('rights');
+               $this->setClassname('QubitRights');
+               $this->setPackage('lib.model');
+               $this->setUseIdGenerator(false);
+               // columns
+               $this->addForeignPrimaryKey('ID', 'id', 'INTEGER' , 'object', 
'ID', true, null, null);
+               $this->addColumn('START_DATE', 'startDate', 'DATE', false, 
null, null);
+               $this->addColumn('END_DATE', 'endDate', 'DATE', false, null, 
null);
+               $this->addForeignKey('BASIS_ID', 'basisId', 'INTEGER', 'term', 
'ID', false, null, null);
+               $this->addForeignKey('ACT_ID', 'actId', 'INTEGER', 'term', 
'ID', false, null, null);
+               $this->addColumn('SOURCE_CULTURE', 'sourceCulture', 'VARCHAR', 
true, 7, null);
+               // validators
+       } // initialize()
+
+       /**
+        * Build the RelationMap objects for this table relationships
+        */
+       public function buildRelations()
+       {
+    $this->addRelation('object', 'object', RelationMap::MANY_TO_ONE, 
array('id' => 'id', ), 'CASCADE', null);
+    $this->addRelation('termRelatedBybasisId', 'term', 
RelationMap::MANY_TO_ONE, array('basis_id' => 'id', ), 'SET NULL', null);
+    $this->addRelation('termRelatedByactId', 'term', RelationMap::MANY_TO_ONE, 
array('act_id' => 'id', ), 'SET NULL', null);
+    $this->addRelation('rightsI18n', 'rightsI18n', RelationMap::ONE_TO_MANY, 
array('id' => 'id', ), 'CASCADE', null);
+       } // buildRelations()
+
+} // RightsTableMap

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to