public function initRecords($overrideExisting = true)
    {
        if (null !== $this->collRecords && !$overrideExisting) {
            return;
        }

        $collectionClassName = RecordTableMap::getTableMap()->getCollectionClassName();

        $this->collRecords = new $collectionClassName;
        $this->collRecords->setModel('\eXpansion\Bundle\LocalRecords\Model\Record');
    }
public function initRecords($overrideExisting = true)
    {
        if (null !== $this->collRecords && !$overrideExisting) {
            return;
        }

        $collectionClassName = RecordTableMap::getTableMap()->getCollectionClassName();

        $this->collRecords = new $collectionClassName;
        $this->collRecords->setModel('\eXpansion\Bundle\LocalRecords\Model\Record');
    }
public function initRecords ( $ overrideExisting = true ) { if ( null !== $ this -> collRecords && ! $ overrideExisting ) { return ; } $ collectionClassName = RecordTableMap :: getTableMap ( ) -> getCollectionClassName ( ) ; $ this -> collRecords = new $ collectionClassName ; $ this -> collRecords -> setModel ( '\eXpansion\Bundle\LocalRecords\Model\Record' ) ; }
Initializes the collRecords collection.

By default this just sets the collRecords collection to an empty array (like clearcollRecords());
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
Initializes the collRecords collection .