1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00
tenancy/src/ResourceSyncing
lukinovec 77226cf2f4
Delete pivot records when deleting SyncMaster using morph pivot (#46)
* Add and correct pivot record tests

* Implement and test deleting pivot records when using morph pivot

* Use dataset to test deleting pivot records with both MorphTenantPivot and TenantPivot

* Delete extra test, use createTenantsAndRunMigrations() where appropriate

* FIx PHPStan errors

* Revert DB::table() assertion changes

* minor test improvements

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-04-22 12:18:15 +02:00
..
Events Enable single_line_empty_body phpcsfixer rule 2024-04-02 04:31:03 +02:00
Listeners Delete pivot records when deleting SyncMaster using morph pivot (#46) 2024-04-22 12:18:15 +02:00
CentralResourceNotAvailableInPivotException.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
ModelNotSyncMasterException.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
ParsesCreationAttributes.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
PivotWithRelation.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
ResourceSyncing.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
Syncable.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
SyncMaster.php categorize todos 2024-03-12 17:29:00 +01:00
TenantMorphPivot.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
TenantPivot.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
TriggerSyncingEvents.php Simplify Tenant contract (remove run method), move run logic to Tenancy, add generics 2024-03-01 08:42:11 +01:00