namespace App\Controller\Api;
use App\Controller\AppController;
use Cake\Event\Event;
use Muffin\Footprint\Auth\FootprintAwareTrait;
use Cake\Core\Exception\Exception;
class ApiAppController extends \App\Controller\AppController {
use \Crud\Controller\ControllerTrait;
use FootprintAwareTrait;
Without the API prefix routing the user_id is saved and the error does not fire.
When using an API prefix routing the plugin doesn't seem to work:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null
My table class:
My ApiAppController:
Without the API prefix routing the user_id is saved and the error does not fire.