Closed ssjindy closed 6 years ago
Hi @ssjindy,
you could create your entity with the following comand:
php bin/console doctrine:generate:entity
and follow the wizard.
This command will create you a file under Entity dir.
After that you could update your database tables with this command:
php bin/console doctrine:schema:update --force
and then you can use the Crud bundle.
I think I have gotten through the hard part. I found that php bin/console doctrine:generate:entity wanted me to enter
AppBundle:
as the 'entity shortcut'.
With a table named 'building' I typed in
AppBundle:building
and it generated a form that I now can access as
I only became aware of Symfony after discovering this CRUD generator. So I am a rank beginner with both.
After I figured out how to install and configure everything, I got to this point:
php bin/console petkopara:generate:crud
and the documentation tells me to 'follow the prompts'.
First thing is to 'give the name of the existing entity'. So, what would that be? I had assumed the starting point would be to input the name of a database table for which I wanted the CRUD generated. Apparently not.
Where do I turn to fill in the blanks? It is not apparent what the starting point is, but apparently I construct 'existing entities' somehow, then reference those. But where does the process start? That's omitted from the steps listed.