public static function getInstance() { if (!self::$myInstance) { self::$myInstance = new flavorParamsPeer(); } if (!self::$instance || !self::$instance instanceof flavorParamsPeer) { self::$instance = self::$myInstance; } return self::$myInstance; }