Example of mapping PHP Objects to relational database tables using Symfony2 and Doctrine