Changeset 88 for trunk/lib/model

Show
Ignore:
Timestamp:
11/29/06 16:05:09 (2 years ago)
Author:
fabien
Message:

updated to symfony 1.0 beta 1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/model/Answer.php

    r85 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseAnswer.php'; 
     3require_once 'lib/model/om/BaseAnswer.php'; 
    44 
    55 
  • trunk/lib/model/AnswerPeer.php

    r69 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseAnswerPeer.php'; 
     4  require_once 'lib/model/om/BaseAnswerPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/Answer.php'; 
     7  include_once 'lib/model/Answer.php'; 
    88 
    99 
  • trunk/lib/model/Interest.php

    r12 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseInterest.php'; 
     3require_once 'lib/model/om/BaseInterest.php'; 
    44 
    55 
  • trunk/lib/model/InterestPeer.php

    r4 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseInterestPeer.php'; 
     4  require_once 'lib/model/om/BaseInterestPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/Interest.php'; 
     7  include_once 'lib/model/Interest.php'; 
    88 
    99 
  • trunk/lib/model/Question.php

    r85 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseQuestion.php'; 
     3require_once 'lib/model/om/BaseQuestion.php'; 
    44 
    55 
  • trunk/lib/model/QuestionPeer.php

    r82 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseQuestionPeer.php'; 
     4  require_once 'lib/model/om/BaseQuestionPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/Question.php'; 
     7  include_once 'lib/model/Question.php'; 
    88 
    99 
     
    6565  } 
    6666 
    67   public function getPopular($max = 10) 
     67  public static function getPopular($max = 10) 
    6868  { 
    6969    $c = new Criteria(); 
  • trunk/lib/model/QuestionTag.php

    r58 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseQuestionTag.php'; 
     3require_once 'lib/model/om/BaseQuestionTag.php'; 
    44 
    55 
  • trunk/lib/model/QuestionTagPeer.php

    r72 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseQuestionTagPeer.php'; 
     4  require_once 'lib/model/om/BaseQuestionTagPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/QuestionTag.php'; 
     7  include_once 'lib/model/QuestionTag.php'; 
    88 
    99 
  • trunk/lib/model/Relevancy.php

    r12 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseRelevancy.php'; 
     3require_once 'lib/model/om/BaseRelevancy.php'; 
    44 
    55 
  • trunk/lib/model/RelevancyPeer.php

    r4 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseRelevancyPeer.php'; 
     4  require_once 'lib/model/om/BaseRelevancyPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/Relevancy.php'; 
     7  include_once 'lib/model/Relevancy.php'; 
    88 
    99 
  • trunk/lib/model/ReportAnswer.php

    r55 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseReportAnswer.php'; 
     3require_once 'lib/model/om/BaseReportAnswer.php'; 
    44 
    55 
  • trunk/lib/model/ReportAnswerPeer.php

    r55 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseReportAnswerPeer.php'; 
     4  require_once 'lib/model/om/BaseReportAnswerPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/ReportAnswer.php'; 
     7  include_once 'lib/model/ReportAnswer.php'; 
    88 
    99 
  • trunk/lib/model/ReportQuestion.php

    r55 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseReportQuestion.php'; 
     3require_once 'lib/model/om/BaseReportQuestion.php'; 
    44 
    55 
  • trunk/lib/model/ReportQuestionPeer.php

    r55 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseReportQuestionPeer.php'; 
     4  require_once 'lib/model/om/BaseReportQuestionPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/ReportQuestion.php'; 
     7  include_once 'lib/model/ReportQuestion.php'; 
    88 
    99 
  • trunk/lib/model/SearchIndex.php

    r58 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseSearchIndex.php'; 
     3require_once 'lib/model/om/BaseSearchIndex.php'; 
    44 
    55 
  • trunk/lib/model/SearchIndexPeer.php

    r58 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseSearchIndexPeer.php'; 
     4  require_once 'lib/model/om/BaseSearchIndexPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/SearchIndex.php'; 
     7  include_once 'lib/model/SearchIndex.php'; 
    88 
    99 
  • trunk/lib/model/User.php

    r69 r88  
    11<?php 
    22 
    3 require_once 'model/om/BaseUser.php'; 
     3require_once 'lib/model/om/BaseUser.php'; 
    44 
    55 
  • trunk/lib/model/UserPeer.php

    r55 r88  
    22 
    33  // include base peer class 
    4   require_once 'model/om/BaseUserPeer.php'; 
     4  require_once 'lib/model/om/BaseUserPeer.php'; 
    55   
    66  // include object class 
    7   include_once 'model/User.php'; 
     7  include_once 'lib/model/User.php'; 
    88 
    99 
  • trunk/lib/model/map/AnswerMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class AnswerMapBuilder { 
    206 
    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';     
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    8351        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    8452                 
    85     } // doBuild() 
    86  
    87 } // AnswerMapBuilder 
     53    }  
     54}  
  • trunk/lib/model/map/InterestMapBuilder.php

    r4 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class InterestMapBuilder { 
    206 
    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';   
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7139        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    7240                 
    73     } // doBuild() 
    74  
    75 } // InterestMapBuilder 
     41    }  
     42}  
  • trunk/lib/model/map/QuestionMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class QuestionMapBuilder { 
    206 
    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';   
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    8553        $tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    8654                 
    87     } // doBuild() 
    88  
    89 } // QuestionMapBuilder 
     55    }  
     56}  
  • trunk/lib/model/map/QuestionTagMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class QuestionTagMapBuilder { 
    206 
    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';    
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7543        $tMap->addPrimaryKey('NORMALIZED_TAG', 'NormalizedTag', 'string', CreoleTypes::VARCHAR, true, 100); 
    7644                 
    77     } // doBuild() 
    78  
    79 } // QuestionTagMapBuilder 
     45    }  
     46}  
  • trunk/lib/model/map/RelevancyMapBuilder.php

    r20 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class RelevancyMapBuilder { 
    206 
    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';  
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7341        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    7442                 
    75     } // doBuild() 
    76  
    77 } // RelevancyMapBuilder 
     43    }  
     44}  
  • trunk/lib/model/map/ReportAnswerMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class ReportAnswerMapBuilder { 
    206 
    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';   
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7139        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    7240                 
    73     } // doBuild() 
    74  
    75 } // ReportAnswerMapBuilder 
     41    }  
     42}  
  • trunk/lib/model/map/ReportQuestionMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class ReportQuestionMapBuilder { 
    206 
    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';     
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7139        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    7240                 
    73     } // doBuild() 
    74  
    75 } // ReportQuestionMapBuilder 
     41    }  
     42}  
  • trunk/lib/model/map/SearchIndexMapBuilder.php

    r58 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class SearchIndexMapBuilder { 
    206 
    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';    
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    7139        $tMap->addColumn('WEIGHT', 'Weight', 'int', CreoleTypes::INTEGER, false); 
    7240                 
    73     } // doBuild() 
    74  
    75 } // SearchIndexMapBuilder 
     41    }  
     42}  
  • trunk/lib/model/map/UserMapBuilder.php

    r55 r88  
    11<?php 
    2          
    3 require_once 'propel/map/MapBuilder.php'; 
    4 include_once 'creole/CreoleTypes.php'; 
    52 
    63 
    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     
    195class UserMapBuilder { 
    206 
    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';   
    259 
    26     /** 
    27      * The database map. 
    28      */ 
     10     
    2911    private $dbMap; 
    3012 
    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     
    3714    public function isBuilt() 
    3815    { 
     
    4017    } 
    4118 
    42     /** 
    43      * Gets the databasemap this map builder built. 
    44      * 
    45      * @return the databasemap 
    46      */ 
     19     
    4720    public function getDatabaseMap() 
    4821    { 
     
    5023    } 
    5124 
    52     /** 
    53      * The doBuild() method builds the DatabaseMap 
    54      * 
    55      * @return void 
    56      * @throws PropelException 
    57      */ 
     25     
    5826    public function doBuild() 
    5927    { 
     
    9159        $tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false); 
    9260                 
    93     } // doBuild() 
    94  
    95 } // UserMapBuilder 
     61    }  
     62}  
  • trunk/lib/model/om/BaseAnswer.php

    r74 r88  
    11<?php 
    22 
    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 
    194abstract class BaseAnswer extends BaseObject  implements Persistent { 
    205 
    216 
    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     
    2811    protected static $peer; 
    2912 
    3013 
    31     /** 
    32      * The value for the id field. 
    33      * @var int 
    34      */ 
     14     
    3515    protected $id; 
    3616 
    3717 
    38     /** 
    39      * The value for the question_id field. 
    40      * @var int 
    41      */ 
     18     
    4219    protected $question_id; 
    4320 
    4421 
    45     /** 
    46      * The value for the user_id field. 
    47      * @var int 
    48      */ 
     22     
    4923    protected $user_id; 
    5024 
    5125 
    52     /** 
    53      * The value for the body field. 
    54      * @var string 
    55      */ 
     26     
    5627    protected $body; 
    5728 
    5829 
    59     /** 
    60      * The value for the html_body field. 
    61      * @var string 
    62      */ 
     30     
    6331    protected $html_body; 
    6432