I use atk 4.1.2. I found a problem while I tried to Insert/Update my Model. It seems like because I added two fields in my table, i.e. : created_by
and updated_by
.
I found these lines caused the problem in MVCTable.php:
if (isset($this->fields['created_by']))
$this->dsql('modify',false)->set('created_by',$this->api->getUserId());
if (isset($this->fields['updated_by']))
$this->dsql('modify',false)->set('updated_by',$this->api->getUserId());
The method $this->api->getUserId()
is not defined anywhere. I don't know whether this same problem occurs for the previous atk versions.