private function doClear(array $types)
    {
        $cleared = [];
        $this->mf->enableCache(false);

        foreach ($types as $type) {
            $metadata = $this->mf->getMetadataForType($type);
            $this->mf->getCache()->evictMetadataFromCache($metadata);
            $cleared[] = $type;
        }

        $this->mf->enableCache(true);
        $this->mf->clearMemory();
        return $cleared;
    }
private function doClear(array $types)
    {
        $cleared = [];
        $this->mf->enableCache(false);

        foreach ($types as $type) {
            $metadata = $this->mf->getMetadataForType($type);
            $this->mf->getCache()->evictMetadataFromCache($metadata);
            $cleared[] = $type;
        }

        $this->mf->enableCache(true);
        $this->mf->clearMemory();
        return $cleared;
    }
private function doClear ( array $ types ) { $ cleared = [ ] ; $ this -> mf -> enableCache ( false ) ; foreach ( $ types as $ type ) { $ metadata = $ this -> mf -> getMetadataForType ( $ type ) ; $ this -> mf -> getCache ( ) -> evictMetadataFromCache ( $ metadata ) ; $ cleared [ ] = $ type ; } $ this -> mf -> enableCache ( true ) ; $ this -> mf -> clearMemory ( ) ; return $ cleared ; }
Clears metadata objects for the provided model types.

@param   array   $types
@return  array
Clears metadata objects for the provided model types .