Call to a member function hasOne() on string code example
Example: 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.
You are missing return statements in the methods that define relations. They need to return relation definition.