public function withoutAttribute($name)
    {
        $new = clone $this;
        if (in_array($name, $this->emulatedAttributes, true)) {
            throw new InvalidArgumentException(
                "You cannot unset '$name'. It is a required CakePHP attribute."
            );
        }
        unset($new->attributes[$name]);

        return $new;
    }
public function withoutAttribute($name)
    {
        $new = clone $this;
        if (in_array($name, $this->emulatedAttributes, true)) {
            throw new InvalidArgumentException(
                "You cannot unset '$name'. It is a required CakePHP attribute."
            );
        }
        unset($new->attributes[$name]);

        return $new;
    }
public function withoutAttribute ( $ name ) { $ new = clone $ this ; if ( in_array ( $ name , $ this -> emulatedAttributes , true ) ) { throw new InvalidArgumentException ( "You cannot unset '$name'. It is a required CakePHP attribute." ) ; } unset ( $ new -> attributes [ $ name ] ) ; return $ new ; }
Return an instance without the specified request attribute.

@param string $name The attribute name.
@return static
@throws \InvalidArgumentException
Return an instance without the specified request attribute .