Deprecated - See DoctrineBundle