PGBI / cakephp3-soft-delete

83 stars 60 forks source link

softdelete update for cakephp 3.6 #29

Open isemantics opened 6 years ago

isemantics commented 6 years ago

While using dev-master of softdelete for a project with cakephp3.6, I got "X is deprecated, use Y" warnings. I think only a couple of things need to be changed. Below is some things I changed locally:

SoftDeleteTrait.php - Line 39: connection() -> getConnection() SoftDeleteTrait.php - Line 25: schema()>column( -> getSchema()->getColumn( SoftDeleteTrait.php - "primaryKey()" to "getPrimaryKey()" ( I think ) Query.php - Line 25: repository() -> getRepository()

Maybe I've missed a version of soft-delete that already has/supports this, then this ssue may be closed.

Thanks for your work.