My team and i have a large web application we're porting to use the Symfony framework which includes Doctrine2 for data access. As we're just starting, we're wondering about regression testing for the entity relationships later on.
We have a large number of Doctrine entities that we have automagically generated from the database schema and are now in the process of checking and tidying up each one specifically in the area of relationship mapping. Once the mapping is done (using doc block annotations) and we confirm via simple scripts that the entities are performing correct data access, what is the best way to ensure the mapping and therefore the functionality of the entities don't break in future.
We are writing unit tests for all the entities as standalone units, mocking the required dependencies but this doesn't necessarily protect us from an annotation comment being edited or the schema changing and breaking the current entity relationships.
Any thoughts? Anybody here had the same issues?