This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Im rendering a partials server side with an Ajax request.
server side, i render a partial containing a ajax_form like this: the component php :
    function onEditProfile()
{
 return ['#profile-form' => $this->renderPartial('@profile-edit.htm', [
            'company' => $this->company
            ] )];
}
the profile-edit.htm partial look like this with only one field
    {{ form_ajax( 'onUpdateProfile', { files: true, model: company}) }}
                   name field
save button
    {{ form_close() }}
then the component method onUpdateProfile:
public function onUpdateProfile()
{
           $company->fill(post());
           $company->save();
           Flash::success('Success!!!');
}
on the line of code $company->save(), i received a sql statement exception referring to an unknown column 'url'. And of course, i dont have this 'url' field in the form neither in my database table.
what is happening here ?
Last updated
here the sql error i receive :
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'url' in 'field list' (SQL: update sba_companies set updated_at = 2015-12-22 01:15:10, url = http://smartbuild.asia.local/company/gammon-construction-limited-singapore-branch-p17vcLlS3gx2uWzS where id = 13093)
1-2 of 2