isOwningSide()) { // many-many owning MUST have a join table if ( ! isset($mapping['joinTable'])) { throw Doctrine_MappingException::joinTableRequired($mapping['fieldName']); } // optional attributes for many-many owning side $this->_associationClass = isset($mapping['associationClass']) ? $mapping['associationClass'] : null; } } /** * Whether the mapping uses an association class for the intermediary * table. * * @return boolean */ public function usesAssociationClass() { return $this->_associationClass !== null; } /** * Gets the name of the association class. * * @return string */ public function getAssociationClassName() { return $this->_associationClass; } }