3 months ago

Issues when use a model without id

Posted 3 months ago by abkrim

I use a model without id for compatiblity of software

class Domain extends Model
    use SoftDeletes, CascadeSoftDeletes;

    protected $cascadeDeletes = ['mailboxes'];

    protected $primaryKey = 'domain';

    protected $keyType = 'string';

    public $incrementing = false;

When try use with delete, softdelete , get error

[previous exception] [object] (PDOException(code: 22007): SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'villegas.net' for column `albaridnova`.`action_events`.`actionable_id` at row 1 at /home/abkrim/Sites/albaridnova/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)

Any body know issues for this question?

Please sign in or create an account to participate in this conversation.