Today, I created my first sample database using Symfony. In just a few steps I was able to have my db up and running. It was awesome!
First, I updated my db parameters in “parameters.yaml”. I was worried that this wouldn’t work because I’m using a Vagrant box (Laravel Homestead) and you don’t really see examples for this approach in the documentation. So, I just added theconfig items (db host, port, name, user, etc.) the same way I have them configured in Sequel Pro. It worked.
Here’s a sample parameters.yml:
Next, I created an Entity class.