Ejemplo n.º 1
0
 /**
  * Initializes the collSocialComments collection.
  *
  * By default this just sets the collSocialComments collection to an empty array (like clearcollSocialComments());
  * 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 initSocialComments($overrideExisting = true)
 {
     if (null !== $this->collSocialComments && !$overrideExisting) {
         return;
     }
     $collectionClassName = SocialCommentTableMap::getTableMap()->getCollectionClassName();
     $this->collSocialComments = new $collectionClassName();
     $this->collSocialComments->setModel('\\App\\Propel\\SocialComment');
 }