Doctrine many-to-one returns only the identifier
问题 I have a unidirectional many-to-one relation between capacity and product. When i want to get a property of an object in the array collection i get "null". The mapping: ''' http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <entity name="\Capacity" table="capacity"> <id name="id" type="integer"> <generator strategy="AUTO" /> </id> <!-- Relation: product --> <many-to-one field="product" target-entity="IDT\Component\Paylogic\Model\Product"> <join-column name="product_id" referenced