Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::registerAlsoLoadMethod PHP Method

registerAlsoLoadMethod() public method

Note: A method may be registered multiple times for different fields. it will be invoked only once for the first field found.
public registerAlsoLoadMethod ( string $method, array | string $fields )
$method string Method name
$fields array | string Database field name(s)
    public function registerAlsoLoadMethod($method, $fields)
    {
        $this->alsoLoadMethods[$method] = is_array($fields) ? $fields : array($fields);
    }
ClassMetadataInfo