Cita:
Iniciado por lucho2000 Cordial saludo.
Estoy empezando a trabajar con Symfony.. me cree una Entidad y al crearla en la Base de Datos con doctryne me genera el siguiente error:
[root@localhost Symfony]# php app/console doctrine:schema:create
ATTENTION: This operation should not be executed in a production environment.
Creating database schema...
[Doctrine\DBAL\DBALException]
Unknown column type "numeric" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all
the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type n
ame is empty you might have a problem with the cache or forgot some mapping information.
doctrine:schema:create [--dump-sql] [--em[="..."]]
Como lo puedo solucionar ?
Gracias
Si lo consideras necesario puedes extender los tipos de datos que soporta Doctrine. Leer
http://docs.doctrine-project.org/pro...-mapping-types http://symfony.com/doc/current/cookb...-mapping-types
Pero para tu caso particular creo que la solucion de MasterPuppet es la indicada