public function isSingleValuedAssociation($fieldName) { return isset($this->associationsMappings[$fieldName]) && $this->associationsMappings[$fieldName]['type'] & self::TO_ONE; }