예제 #1
0
파일: User.php 프로젝트: sh6210/travel
 /**
  * Initializes the collTourQueries collection.
  *
  * By default this just sets the collTourQueries collection to an empty array (like clearcollTourQueries());
  * however, you may wish to override this method in your stub class to provide setting appropriate
  * to your application -- for example, setting the initial array to the values stored in database.
  *
  * @param      boolean $overrideExisting If set to true, the method call initializes
  *                                        the collection even if it is not empty
  *
  * @return void
  */
 public function initTourQueries($overrideExisting = true)
 {
     if (null !== $this->collTourQueries && !$overrideExisting) {
         return;
     }
     $collectionClassName = TourQueryTableMap::getTableMap()->getCollectionClassName();
     $this->collTourQueries = new $collectionClassName();
     $this->collTourQueries->setModel('\\TourQuery');
 }