creation of a basic entity with doctrine 2