working Doctrine with entities