Symfony Translation Part V MySQL Database



Symfony Translation Part V MySQL Database

Symfony Translation Part V  MySQL Database

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Symfony Translations Series
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
“The end result we reaching for is so that the client or administrator
of the application can change any translation them selves, e.g. spelling
mistakes, change grammar, add languages to the application or change the
button wording from Sign In to Login and back a gain, eish, instead of
bugging me for these changes.”

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Symfony Translation Part V MySQL Database
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In this video to continue with the translations series

– going to show how to create an entity with doctrine for the translations

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Symfony Databases and the Doctrine ORM
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Symfony provides all the tools you need to use databases in your applications
thanks to Doctrine, the best set of PHP libraries to work with databases.
These tools support relational databases like MySQL and PostgreSQL and
also NoSQL databases like MongoDB.

Full Documentation https://symfony.com/doc/current/doctrine.html

We going to create a new database using the *.env file and doctrine.yaml
We going to create three (3) Entity Classes
* MainTranslationMessages
* MainTranslationSecurities
* MainTranslationValidators

We going to add some additional “tools” to our doctrine entity classes: –
* HasLifecycleCallbacks – Sometimes, you need to perform an action right
before or after an entity is inserted, updated, or deleted. These types
of actions are known as “lifecycle” callbacks, as they’re callback
methods that you need to execute during different stages of the
lifecycle of an entity (e.g. the entity is inserted, updated, deleted,
etc).
* UniqueEntity and
* Constraints as Assert

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Github Repository
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PLEASE NOTE: I’m not going to create a separate gitub repository for every
single video. The idea with the gitub repository is to have one symfony
application to play, test and share the coding as we go along.

URL: https://github.com/codingwithtd/symfony_youtube_tutorial
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Cheers till next time!

TD

If you like the content or learned something, please don`t forget to like,
subscribe, share, and remember the notification bell, thanks!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Music from YouTube I’m listening to while recording these videos
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Background Music Credits –
Channel: White Noise Tranquility
Little Treehouse with Rain & Fireplace Sounds for 12 Hours
https://www.youtube.com/watch?v=qUSIS3laftY&ab_channel=WhiteNoiseTranquility
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++