Package Reading Entity Mappings on install, accessing Doctrine CLI in context of Concrete5 Application?
Permalink 1 user found helpful
Hi, I've been looking at the code for 5.7.1, and it isn't immediately apparent where I can either:
Put up my directory of Package Specific Entities that usually I would run:
orm:schema-tool:update then orm:schema-tool:update --force to create the tables (including join tables)
or to do the same outside of a package. Is there something I'm missing, or is it up to me to do this myself, then take the generated schema and put it in a db.xml file for a package or site_db.xml for an application?
I just don't see where this would be available to the current install via the CLI.
Thanks, this is probably a question for Andrew or Korvin.
Put up my directory of Package Specific Entities that usually I would run:
orm:schema-tool:update then orm:schema-tool:update --force to create the tables (including join tables)
or to do the same outside of a package. Is there something I'm missing, or is it up to me to do this myself, then take the generated schema and put it in a db.xml file for a package or site_db.xml for an application?
I just don't see where this would be available to the current install via the CLI.
Thanks, this is probably a question for Andrew or Korvin.
Any news on this ?
@moobee
Is this related to what you are looking for?
http://www.concrete5.org/documentation/developers/5.7/packages/cust...
Is this related to what you are looking for?
http://www.concrete5.org/documentation/developers/5.7/packages/cust...
Yes, I saw this documentation.
It shows how we can use Doctrine entities to create tables at package installation.
To generate entities from an existing MySQL database, I need access to the Doctrine CLI.
(This this tutorial, for example :http://symfony.com/doc/current/cookbook/doctrine/reverse_engineerin...
But I don't know how to use the Doctrine CLI in Concrete5.
(As a workaround, I created a fake Symfony app, and a fake bundle in it, and I created my entities from here)
It shows how we can use Doctrine entities to create tables at package installation.
To generate entities from an existing MySQL database, I need access to the Doctrine CLI.
(This this tutorial, for example :http://symfony.com/doc/current/cookbook/doctrine/reverse_engineerin...
But I don't know how to use the Doctrine CLI in Concrete5.
(As a workaround, I created a fake Symfony app, and a fake bundle in it, and I created my entities from here)