37 switch ( $platform ) {
45 $platformObject =
new SqlitePlatform;
48 throw new InvalidArgumentException(
'Unknown platform: ' . $platform );
57 foreach ( $customTypes as
$type => [ $class, $name ] ) {
58 if ( !Type::hasType( $name ) ) {
59 Type::addType( $name, $class );
61 $platformObject->registerDoctrineTypeMapping(
$type, $name );
64 return $platformObject;