Symfony. Validate an object based on its previous version

How to validate an object using the Validator component of Symfony and taking into account its previous version

Photo by Icons8 team on Unsplash

Today I bring you one of those recipes for Symfony that is always good to know if at any time we find the opportunity to apply it. Basically, what I intend in this article is to…