Entity field - queryBuilder->select()
问题 I have a problem with entity field, query builder and OneToOne relationship. When I created entity field with query_builder in form class and when I set select ('u.id, u.username') I get exception: >need array or object, integer given. When I set select('u') is fine but I get columns with OneToOne relationship and Doctrine generates x additional SELECT queries. What do I have to do? EDIT: MORE DETAILS For example I have two entity with oneToOne relation, User and Contact: <?php namespace