concrete/src/Page/Collection/Collection.php
public function addFeature(Feature $fe)
    {
        $db = Loader::db();
        $db->Replace(
           'CollectionVersionFeatures',
           ['cID' => $this->getCollectionID(), 'cvID' => $this->getVersionID(), 'feID' => $fe->getFeatureID()],
           ['cID', 'cvID', 'feID'],
           true
        );
    }
public function addFeature(Feature $fe)
    {
        $db = Loader::db();
        $db->Replace(
           'CollectionVersionFeatures',
           ['cID' => $this->getCollectionID(), 'cvID' => $this->getVersionID(), 'feID' => $fe->getFeatureID()],
           ['cID', 'cvID', 'feID'],
           true
        );
    }
public function addFeature ( Feature $ fe ) { $ db = Loader :: db ( ) ; $ db -> Replace ( 'CollectionVersionFeatures' , [ 'cID' => $ this -> getCollectionID ( ) , 'cvID' => $ this -> getVersionID ( ) , 'feID' => $ fe -> getFeatureID ( ) ] , [ 'cID' , 'cvID' , 'feID' ] , true ) ; }
Associate a feature to the currently loaded collection version.

@param Feature $fe
Associate a feature to the currently loaded collection version .