Changeset 88 for trunk/lib/model
- Timestamp:
- 11/29/06 16:05:09 (2 years ago)
- Files:
-
- trunk/lib/model/Answer.php (modified) (1 diff)
- trunk/lib/model/AnswerPeer.php (modified) (1 diff)
- trunk/lib/model/Interest.php (modified) (1 diff)
- trunk/lib/model/InterestPeer.php (modified) (1 diff)
- trunk/lib/model/Question.php (modified) (1 diff)
- trunk/lib/model/QuestionPeer.php (modified) (2 diffs)
- trunk/lib/model/QuestionTag.php (modified) (1 diff)
- trunk/lib/model/QuestionTagPeer.php (modified) (1 diff)
- trunk/lib/model/Relevancy.php (modified) (1 diff)
- trunk/lib/model/RelevancyPeer.php (modified) (1 diff)
- trunk/lib/model/ReportAnswer.php (modified) (1 diff)
- trunk/lib/model/ReportAnswerPeer.php (modified) (1 diff)
- trunk/lib/model/ReportQuestion.php (modified) (1 diff)
- trunk/lib/model/ReportQuestionPeer.php (modified) (1 diff)
- trunk/lib/model/SearchIndex.php (modified) (1 diff)
- trunk/lib/model/SearchIndexPeer.php (modified) (1 diff)
- trunk/lib/model/User.php (modified) (1 diff)
- trunk/lib/model/UserPeer.php (modified) (1 diff)
- trunk/lib/model/map/AnswerMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/InterestMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/QuestionMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/QuestionTagMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/RelevancyMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/ReportAnswerMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/ReportQuestionMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/SearchIndexMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/map/UserMapBuilder.php (modified) (4 diffs)
- trunk/lib/model/om/BaseAnswer.php (modified) (61 diffs)
- trunk/lib/model/om/BaseAnswerPeer.php (modified) (49 diffs)
- trunk/lib/model/om/BaseInterest.php (modified) (34 diffs)
- trunk/lib/model/om/BaseInterestPeer.php (modified) (50 diffs)
- trunk/lib/model/om/BaseQuestion.php (modified) (83 diffs)
- trunk/lib/model/om/BaseQuestionPeer.php (modified) (35 diffs)
- trunk/lib/model/om/BaseQuestionTag.php (modified) (38 diffs)
- trunk/lib/model/om/BaseQuestionTagPeer.php (modified) (50 diffs)
- trunk/lib/model/om/BaseRelevancy.php (modified) (36 diffs)
- trunk/lib/model/om/BaseRelevancyPeer.php (modified) (50 diffs)
- trunk/lib/model/om/BaseReportAnswer.php (modified) (34 diffs)
- trunk/lib/model/om/BaseReportAnswerPeer.php (modified) (50 diffs)
- trunk/lib/model/om/BaseReportQuestion.php (modified) (34 diffs)
- trunk/lib/model/om/BaseReportQuestionPeer.php (modified) (50 diffs)
- trunk/lib/model/om/BaseSearchIndex.php (modified) (30 diffs)
- trunk/lib/model/om/BaseSearchIndexPeer.php (modified) (34 diffs)
- trunk/lib/model/om/BaseUser.php (modified) (98 diffs)
- trunk/lib/model/om/BaseUserPeer.php (modified) (26 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/model/Answer.php
r85 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseAnswer.php';3 require_once 'lib/model/om/BaseAnswer.php'; 4 4 5 5 trunk/lib/model/AnswerPeer.php
r69 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseAnswerPeer.php';4 require_once 'lib/model/om/BaseAnswerPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/Answer.php';7 include_once 'lib/model/Answer.php'; 8 8 9 9 trunk/lib/model/Interest.php
r12 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseInterest.php';3 require_once 'lib/model/om/BaseInterest.php'; 4 4 5 5 trunk/lib/model/InterestPeer.php
r4 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseInterestPeer.php';4 require_once 'lib/model/om/BaseInterestPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/Interest.php';7 include_once 'lib/model/Interest.php'; 8 8 9 9 trunk/lib/model/Question.php
r85 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseQuestion.php';3 require_once 'lib/model/om/BaseQuestion.php'; 4 4 5 5 trunk/lib/model/QuestionPeer.php
r82 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseQuestionPeer.php';4 require_once 'lib/model/om/BaseQuestionPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/Question.php';7 include_once 'lib/model/Question.php'; 8 8 9 9 … … 65 65 } 66 66 67 public function getPopular($max = 10)67 public static function getPopular($max = 10) 68 68 { 69 69 $c = new Criteria(); trunk/lib/model/QuestionTag.php
r58 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseQuestionTag.php';3 require_once 'lib/model/om/BaseQuestionTag.php'; 4 4 5 5 trunk/lib/model/QuestionTagPeer.php
r72 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseQuestionTagPeer.php';4 require_once 'lib/model/om/BaseQuestionTagPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/QuestionTag.php';7 include_once 'lib/model/QuestionTag.php'; 8 8 9 9 trunk/lib/model/Relevancy.php
r12 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseRelevancy.php';3 require_once 'lib/model/om/BaseRelevancy.php'; 4 4 5 5 trunk/lib/model/RelevancyPeer.php
r4 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseRelevancyPeer.php';4 require_once 'lib/model/om/BaseRelevancyPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/Relevancy.php';7 include_once 'lib/model/Relevancy.php'; 8 8 9 9 trunk/lib/model/ReportAnswer.php
r55 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseReportAnswer.php';3 require_once 'lib/model/om/BaseReportAnswer.php'; 4 4 5 5 trunk/lib/model/ReportAnswerPeer.php
r55 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseReportAnswerPeer.php';4 require_once 'lib/model/om/BaseReportAnswerPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/ReportAnswer.php';7 include_once 'lib/model/ReportAnswer.php'; 8 8 9 9 trunk/lib/model/ReportQuestion.php
r55 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseReportQuestion.php';3 require_once 'lib/model/om/BaseReportQuestion.php'; 4 4 5 5 trunk/lib/model/ReportQuestionPeer.php
r55 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseReportQuestionPeer.php';4 require_once 'lib/model/om/BaseReportQuestionPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/ReportQuestion.php';7 include_once 'lib/model/ReportQuestion.php'; 8 8 9 9 trunk/lib/model/SearchIndex.php
r58 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseSearchIndex.php';3 require_once 'lib/model/om/BaseSearchIndex.php'; 4 4 5 5 trunk/lib/model/SearchIndexPeer.php
r58 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseSearchIndexPeer.php';4 require_once 'lib/model/om/BaseSearchIndexPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/SearchIndex.php';7 include_once 'lib/model/SearchIndex.php'; 8 8 9 9 trunk/lib/model/User.php
r69 r88 1 1 <?php 2 2 3 require_once ' model/om/BaseUser.php';3 require_once 'lib/model/om/BaseUser.php'; 4 4 5 5 trunk/lib/model/UserPeer.php
r55 r88 2 2 3 3 // include base peer class 4 require_once ' model/om/BaseUserPeer.php';4 require_once 'lib/model/om/BaseUserPeer.php'; 5 5 6 6 // include object class 7 include_once ' model/User.php';7 include_once 'lib/model/User.php'; 8 8 9 9 trunk/lib/model/map/AnswerMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_answer' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class AnswerMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.AnswerMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.AnswerMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 83 51 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 84 52 85 } // doBuild() 86 87 } // AnswerMapBuilder 53 } 54 } trunk/lib/model/map/InterestMapBuilder.php
r4 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_interest' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class InterestMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.InterestMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.InterestMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 71 39 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 72 40 73 } // doBuild() 74 75 } // InterestMapBuilder 41 } 42 } trunk/lib/model/map/QuestionMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_question' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class QuestionMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.QuestionMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.QuestionMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 85 53 $tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false); 86 54 87 } // doBuild() 88 89 } // QuestionMapBuilder 55 } 56 } trunk/lib/model/map/QuestionTagMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_question_tag' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class QuestionTagMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.QuestionTagMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.QuestionTagMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 75 43 $tMap->addPrimaryKey('NORMALIZED_TAG', 'NormalizedTag', 'string', CreoleTypes::VARCHAR, true, 100); 76 44 77 } // doBuild() 78 79 } // QuestionTagMapBuilder 45 } 46 } trunk/lib/model/map/RelevancyMapBuilder.php
r20 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_relevancy' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class RelevancyMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.RelevancyMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.RelevancyMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 73 41 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 74 42 75 } // doBuild() 76 77 } // RelevancyMapBuilder 43 } 44 } trunk/lib/model/map/ReportAnswerMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_report_answer' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class ReportAnswerMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.ReportAnswerMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.ReportAnswerMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 71 39 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 72 40 73 } // doBuild() 74 75 } // ReportAnswerMapBuilder 41 } 42 } trunk/lib/model/map/ReportQuestionMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_report_question' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class ReportQuestionMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.ReportQuestionMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.ReportQuestionMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 71 39 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 72 40 73 } // doBuild() 74 75 } // ReportQuestionMapBuilder 41 } 42 } trunk/lib/model/map/SearchIndexMapBuilder.php
r58 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_search_index' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class SearchIndexMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.SearchIndexMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.SearchIndexMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 71 39 $tMap->addColumn('WEIGHT', 'Weight', 'int', CreoleTypes::INTEGER, false); 72 40 73 } // doBuild() 74 75 } // SearchIndexMapBuilder 41 } 42 } trunk/lib/model/map/UserMapBuilder.php
r55 r88 1 1 <?php 2 3 require_once 'propel/map/MapBuilder.php';4 include_once 'creole/CreoleTypes.php';5 2 6 3 7 /** 8 * This class adds structure of 'ask_user' table to 'symfony' DatabaseMap object. 9 * 10 * 11 * 12 * These statically-built map classes are used by Propel to do runtime db structure discovery. 13 * For example, the createSelectSql() method checks the type of a given column used in an 14 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 15 * (i.e. if it's a text column type). 16 * 17 * @package model.map 18 */ 4 19 5 class UserMapBuilder { 20 6 21 /** 22 * The (dot-path) name of this class 23 */ 24 const CLASS_NAME = 'model.map.UserMapBuilder'; 7 8 const CLASS_NAME = 'lib.model.map.UserMapBuilder'; 25 9 26 /** 27 * The database map. 28 */ 10 29 11 private $dbMap; 30 12 31 /** 32 * Tells us if this DatabaseMapBuilder is built so that we 33 * don't have to re-build it every time. 34 * 35 * @return boolean true if this DatabaseMapBuilder is built, false otherwise. 36 */ 13 37 14 public function isBuilt() 38 15 { … … 40 17 } 41 18 42 /** 43 * Gets the databasemap this map builder built. 44 * 45 * @return the databasemap 46 */ 19 47 20 public function getDatabaseMap() 48 21 { … … 50 23 } 51 24 52 /** 53 * The doBuild() method builds the DatabaseMap 54 * 55 * @return void 56 * @throws PropelException 57 */ 25 58 26 public function doBuild() 59 27 { … … 91 59 $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 92 60 93 } // doBuild() 94 95 } // UserMapBuilder 61 } 62 } trunk/lib/model/om/BaseAnswer.php
r74 r88 1 1 <?php 2 2 3 require_once 'propel/om/BaseObject.php'; 4 5 require_once 'propel/om/Persistent.php'; 6 7 8 include_once 'propel/util/Criteria.php'; 9 10 include_once 'model/AnswerPeer.php'; 11 12 /** 13 * Base class that represents a row from the 'ask_answer' table. 14 * 15 * 16 * 17 * @package model.om 18 */ 3 19 4 abstract class BaseAnswer extends BaseObject implements Persistent { 20 5 21 6 22 /** 23 * The Peer class. 24 * Instance provides a convenient way of calling static methods on a class 25 * that calling code may not be able to identify. 26 * @var AnswerPeer 27 */ 7 8 const DATABASE_NAME = 'symfony'; 9 10 28 11 protected static $peer; 29 12 30 13 31 /** 32 * The value for the id field. 33 * @var int 34 */ 14 35 15 protected $id; 36 16 37 17 38 /** 39 * The value for the question_id field. 40 * @var int 41 */ 18 42 19 protected $question_id; 43 20 44 21 45 /** 46 * The value for the user_id field. 47 * @var int 48 */ 22 49 23 protected $user_id; 50 24 51 25 52 /** 53 * The value for the body field. 54 * @var string 55 */ 26 56 27 protected $body; 57 28 58 29 59 /** 60 * The value for the html_body field. 61 * @var string 62 */ 30 63 31 protected $html_body; 64 32
