public function compare($obj, $obj2, $whitelist)
    {
        foreach ($whitelist as $acceptedField) {
            if ($obj->{$this->camelize('get_' . $acceptedField)}() != $obj2->{$this->camelize('get_' . $acceptedField)}(
                )) {
                return false;
            }
        }

        return true;
    }