/** * Set up before class * * @return void */ public static function setUpBeforeClass() { Zend_Session::$_unitTestEnabled = true; parent::setUpBeforeClass(); $tool = new SchemaTool(self::$entityManager); $tool->createSchema(array(self::$entityManager->getClassMetadata('Rexmac\\Zyndax\\Entity\\Session'))); }
/** * Set up before class * * @return void */ public static function setUpBeforeClass() { parent::setUpBeforeClass(); // Add IP data type mapping self::$entityManager->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('IP', 'ip'); $tool = new SchemaTool(self::$entityManager); $tool->createSchema(array(self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclPermission'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclResource'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclRole'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\Session'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\SocialNetwork'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\TimeZone'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\User'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserEditEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserEmailVerification'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserLoginAsEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserLoginEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserPasswordResetToken'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserProfile'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserSocialNetworkIdentity'))); }
/** * Set up before class. * * @return void */ public static function setUpBeforeClass() { parent::setUpBeforeClass(); $tool = new SchemaTool(self::$entityManager); $tool->createSchema(array(self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclPermission'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclResource'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclRole'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\User'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserProfile'))); }