In development, when you updates records in database through a form, it's very interesting to known what have changed and what have not changed.
If you use Doctrine with entities, these informations are easily to determined. For instance with an
user entity :
$uow = $this->em->getUnitO...
With GIT, a great cheat sheet is more efficient than a long text !
Few easy steps to moving GIT repository content to another repository preserving history
- Fetch all of the remote branches and tags to local index:
git fetch origin
- Create a new remote on local repository
git remote add new-origin firstname.lastname@example.org:vfac/newrepo.git
- To push all local branches a...
The database classicaly used with Symfony 4 is MySQL / MariaDB throught Doctrine project. However, some projects need a NoSQL database like MongoDB in replacement of the relational database. It's not a reason to not develop them with Symfony 4 !
The DoctrineMongoDBBundle is a project that allows...
Sometimes, you can have an internal server error (500) but you don't have any information in logs on it.
To determine and resolve this type of problem, the simplier way is to display directly the error on screen.
Be careful, this solution is not secured ! It can be used only for debuging.