You are missing return statements in the methods that define relations. They need to return relation definition.