src/Tools/ClassMetadata/ClassMetadata.php
public function setCollection($collection)
    {
        if (!$this->loaded) {
            $this->load();
        }

        $this->collectionInfo->setCollection($collection);
        return $this;
    }
public function setCollection($collection)
    {
        if (!$this->loaded) {
            $this->load();
        }

        $this->collectionInfo->setCollection($collection);
        return $this;
    }
public function setCollection ( $ collection ) { if ( ! $ this -> loaded ) { $ this -> load ( ) ; } $ this -> collectionInfo -> setCollection ( $ collection ) ; return $ this ; }
Set the collection

@param   string          $collection     Name of the collection
@return  ClassMetadata
Set the collection