I've thought of a better way of achieving the same goal. Will close this
pull request and create a new one tomorrow.
On 14 May 2014 15:09, "Mark Story" <notifications@github.com> wrote:

> In src/ORM/BehaviorRegistry.php:
>
> > +
> > +		foreach ($methods as $method => $methodName) {
> > +			if (isset($this->_methodMap[$method])) {
> > +				unset($this->_methodMap[$method]);
> > +			}
> > +		}
> > +	}
> > +
> > +/**
> > + * Remove a behavior from the registry, also removes any methods or finders that were added when the behavior was loaded.
> > + *
> > + * @param string $objectName The alias of the behavior to remove from the registry.
> > + *
> > + * @return void
> > + */
> > +	public function remove($objectName) {
>
> Having two methods is not a good idea. This leaves unload as 'broken'.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cakephp/cakephp/pull/3494/files#r12634328>
> .
>