private function loadCollections()
    {
        $collections = new ArrayCollection();

        $finder = new Finder();
        $finder->files()->name('*.dat')->in($this->filepath);

        foreach ($finder as $file) {
            $name = $file->getBasename('.dat');
            $collections->set($name, $this->createCollection($name));
        }

        return $collections;
    }
private function loadCollections()
    {
        $collections = new ArrayCollection();

        $finder = new Finder();
        $finder->files()->name('*.dat')->in($this->filepath);

        foreach ($finder as $file) {
            $name = $file->getBasename('.dat');
            $collections->set($name, $this->createCollection($name));
        }

        return $collections;
    }
private function loadCollections ( ) { $ collections = new ArrayCollection ( ) ; $ finder = new Finder ( ) ; $ finder -> files ( ) -> name ( '*.dat' ) -> in ( $ this -> filepath ) ; foreach ( $ finder as $ file ) { $ name = $ file -> getBasename ( '.dat' ) ; $ collections -> set ( $ name , $ this -> createCollection ( $ name ) ) ; } return $ collections ; }
Loads the collections for the Database

@return ArrayCollection
Loads the collections for the Database