23/10/2011, 11:01
|
| | | Fecha de Ingreso: marzo-2007
Mensajes: 118
Antigüedad: 17 años, 8 meses Puntos: 1 | |
Respuesta: Entidades con atributos booleans Muchas gracias por contestar masterpuppet. En Sf2, para doctrine se proporcionan en la consola los siguientes comandos:
doctrine
doctrine:cache:clear-metadata -- Clear all metadata cache for a entity manager
doctrine:cache:clear-query -- Clear all query cache for a entity manager
doctrine:cache:clear-result -- Clear result cache for a entity manager
doctrine:database:create -- Create the configured databases
doctrine:database:drop -- Drop the configured databases
doctrine:ensure-production-settings -- Verify that Doctrine is properly configured for a production environment.
doctrine:generate:crud -- Generates a CRUD based on a Doctrine entity
doctrine:generate:entities -- Generate entity classes and method stubs from your mapping information
doctrine:generate:entity -- Generates a new Doctrine entity inside a bundle
doctrine:generate:form -- Generates a form type class based on a Doctrine entity
doctrine:mapping:convert -- Convert mapping information between supported formats.
doctrine:mapping:import -- Import mapping information from an existing database
doctrine:mapping:info -- Show basic information about all mapped entities
doctrine:query:dql -- Executes arbitrary DQL directly from the command line.
doctrine:query:sql -- Executes arbitrary SQL directly from the command line.
doctrine:schema:create -- Executes (or dumps) the SQL needed to generate the database schema
doctrine:schema:drop -- Executes (or dumps) the SQL needed to drop the current database schema
doctrine:schema:update -- Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata
De todas maneras, también he borrado el esquema y vuelto a crear, he borrado la base de datos y la he vuelto a crear, pero nada... no se que estará pasando. He probado ponerle en vez de boolean tinyint(1) pero NADA! |