Relationship was not being made between $parent and $object