Symfony\Component\Debug\Exception\FatalThrowableError Call to a member function addEagerConstraints() on null code example
Example 1: Call to a member function addEagerConstraints() on null
You are missing return statements in the methods that define relations. They need to return relation definition.
Example 2: Symfony\Component\Debug\Exception\FatalThrowableError : Call to a member function nullable() on null
you have to write timestamp instead of timestamps