You are here

public function LazyLoadableObjectClassMetadata::hasAssociation in Plug 7

Checks if the given field is a mapped association for this class.

Parameters

string $fieldName:

Return value

boolean

Overrides ClassMetadata::hasAssociation

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/LazyLoadableObjectClassMetadata.php, line 111

Class

LazyLoadableObjectClassMetadata
Class metadata test asset for @author Marco Pivetta <ocramius@gmail.com> @since 2.4

Namespace

Doctrine\Tests\Common\Proxy

Code

public function hasAssociation($fieldName) {
  return isset($this->associations[$fieldName]);
}