I have this class, using Doctrine/PHP:
class Client {
/** @ORM\ManyToOne(targetEntity="Fee", fetch="EAGER") @ORM\JoinColumn() */
private ?Fee $defaultFee;
// [...]
}
If I don't specify the fetch
-Attribute in the @ManyToOne
-annotation, what does it default to?
In this article, it says that JPA and Hibernate handle it differently already in Java, so I would like to know for sure what the default is, instead of guessing.
In the doctrine documentation I found which attributes are required and which ones are optional. But I didn't find any information about what is the default, if the optional attributes are left out.