コード例 #1
0
ファイル: Role.php プロジェクト: mtornero/slowshop
 /**
  * Initializes the collRoleI18ns collection.
  *
  * By default this just sets the collRoleI18ns collection to an empty array (like clearcollRoleI18ns());
  * 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 initRoleI18ns($overrideExisting = true)
 {
     if (null !== $this->collRoleI18ns && !$overrideExisting) {
         return;
     }
     $collectionClassName = RoleI18nTableMap::getTableMap()->getCollectionClassName();
     $this->collRoleI18ns = new $collectionClassName();
     $this->collRoleI18ns->setModel('\\App\\Propel\\RoleI18n');
 }