petkopara / PetkoparaCrudGeneratorBundle

Symfony3 CRUD generator bundle with pagination, filter, bulk actions and Twitter bootstrap 3.3.6 features.
MIT License
70 stars 17 forks source link

Where does a beginner start? #51

Closed ssjindy closed 6 years ago

ssjindy commented 6 years ago

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.

petkopara commented 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.

ssjindy commented 6 years ago

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

http://127.0.0.1/building