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

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

        $this->collM2Ps = new $collectionClassName;
        $this->collM2Ps->setModel('\Attogram\SharedMedia\Orm\M2P');
    }
public function initM2Ps($overrideExisting = true)
    {
        if (null !== $this->collM2Ps && !$overrideExisting) {
            return;
        }

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

        $this->collM2Ps = new $collectionClassName;
        $this->collM2Ps->setModel('\Attogram\SharedMedia\Orm\M2P');
    }
public function initM2Ps ( $ overrideExisting = true ) { if ( null !== $ this -> collM2Ps && ! $ overrideExisting ) { return ; } $ collectionClassName = M2PTableMap :: getTableMap ( ) -> getCollectionClassName ( ) ; $ this -> collM2Ps = new $ collectionClassName ; $ this -> collM2Ps -> setModel ( '\Attogram\SharedMedia\Orm\M2P' ) ; }
Initializes the collM2Ps collection.

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