Month: September 2021

  • Using doctrine commands in the console with Symfony Framework

    Using doctrine commands in the console with Symfony Framework

    Here is the issue. If you follow along the docs for Doctrine when working on a Symfony framework, you will get issues every once and a while. ./vendor/bin/doctrine-migrations status –show-versions Something missing or not configured correctly etc. That line is copied and pasted directly from the Doctrine documentation . To use Doctrine this way with […]

  • How to quickly create a complete Symfony 5+ app with login and password reset

    How to quickly create a complete Symfony 5+ app with login and password reset

    If you follow this quick guide you should be able to have a simple, yet complete Symfony 5.xx ( or 6 soon ) . There are lots and lots of baby steps. If you want to know how all of this works and much more I suggest reading this excellent article. This is meant to […]

  • Symfony 5+ how to create a Maker

    Symfony 5+ how to create a Maker

    The docs do not mention how to create your own maker bundle. It gives a link to some of the Github code of the existing maker bundles for you to view as an example. So when I dug deeper into the subject, I figured out what you are actually doing with a maker is creating […]

  • Php how to use array_map with an anonymous function

    Php how to use array_map with an anonymous function

    In PHP you can use array_map() and the other array related methods like array_filter() with either a named function, an anonymous function, or an arrow function. I didn’t see any examples in the PHP docs( they can be updated any day ) about how to use an anonymous function, so I tried it and here […]

  • PHP how to convert Pascal Case to Underscore case

    PHP how to convert Pascal Case to Underscore case

    I recently ran into a situation where I needed to convert Pascal case Entity names in Symfony to underscore names like so : UserSettings to user_settings I was trying to convert the Entity names into table namesĀ  for a Symfony maker bundle that clones Entities. First off you will need to understand the basics of […]