public function createCollection($className)
    {
        $className = (string) $className;
        if (array_key_exists($className, $this->aliases)) {
            $className = $this->aliases[$className];
        }

        return $this->getCollectionManager()->create($className);
    }
public function createCollection($className)
    {
        $className = (string) $className;
        if (array_key_exists($className, $this->aliases)) {
            $className = $this->aliases[$className];
        }

        return $this->getCollectionManager()->create($className);
    }
public function createCollection ( $ className ) { $ className = ( string ) $ className ; if ( array_key_exists ( $ className , $ this -> aliases ) ) { $ className = $ this -> aliases [ $ className ] ; } return $ this -> getCollectionManager ( ) -> create ( $ className ) ; }
Shorthand access method to create collection. Consults aliases to allow short names.

@param string|Entity\Entity $className

@return ArrayCollection
Shorthand access method to create collection . Consults aliases to allow short names .