symfony2 get all validation constraints on an entity (yml, xml, annotations)
Im trying to get all validation constraints on an entity and translate theses constraints to Jquery validation rules, right now im able to get annotation defined constraints (thanks to : Symfony2 get validation constraints on an entity ), but im having some trouble getting xml and yml ones. $xml_file_loader = new XmlFileLoader("path_to_my_project/vendor/friendsofsymfony/user-bundle\FOS\UserBundle\Resources\config\validation.xml"); Using a similar code means that i need to know beforehand where the xml/yml file is located, i m trying to write somehow a generic code that can do this