* - Scope1 * - Scope2 * * <IScopedEntity4> * - Scope0 * - Scope1 * - Scope2 * - Scope3 * - Scope4 * - Scope5 */ $scopeCount = 6; $scopes = array(); // create scopes and persist for ($i = 0; $i < $scopeCount; $i++) { $scopes[] = TestUtil::createSampleScope("Proj scope " . $i, "Scope" . $i); $this->em->persist($scopes[$i]); } // NGIs **************************** // create ngis and persist $ngi0 = TestUtil::createSampleNGI("MYNGI0"); $ngi1 = TestUtil::createSampleNGI("MYNGI1"); $ngi2 = TestUtil::createSampleNGI("MYNGI2"); $ngi3 = TestUtil::createSampleNGI("MYNGI3"); $ngi4 = TestUtil::createSampleNGI("MYNGI4"); $this->em->persist($ngi0); $this->em->persist($ngi1); $this->em->persist($ngi2); $this->em->persist($ngi3); $this->em->persist($ngi4); // Add different scopes to selected ngis: