+ //Album tree
+ $albumTree = [
+ ];
+
+ //Create titles
+ $albums = [];
+ foreach($albumTree as $albumTitle => $albumPath) {
+ $album = new Album($albumPath, $this->slugger->slug($albumTitle), $albumTitle);
+ $manager->persist($album);
+ $albums[$albumTitle] = $album;
+ unset($album);
+ }
+