Added entity classes. Added doctrine extensions.