public function hasAssociation($fieldName) { return $this->hasReference($fieldName) || $this->hasEmbed($fieldName); }