From f2d2bc9af851100f8bbd1fa7705714d2037636c9 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 16 Jul 2020 15:59:16 +0300 Subject: [PATCH] - CS --- src/Mapper/DatabaseMapper.php | 2 +- src/Relation/RefersTo.php | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Mapper/DatabaseMapper.php b/src/Mapper/DatabaseMapper.php index 3ad96752d..20c8987d6 100644 --- a/src/Mapper/DatabaseMapper.php +++ b/src/Mapper/DatabaseMapper.php @@ -120,7 +120,7 @@ public function queueUpdate($entity, Node $node, State $state): ContextCarrierIn $data = $this->fetchFields($entity); // in a future mapper must support solid states - $changes = array_udiff_assoc($data, $node->getData(), [static::class, 'compare']); + $changes = array_udiff_assoc($data, $state->getData(), [static::class, 'compare']); unset($changes[$this->primaryKey]); $changedColumns = $this->mapColumns($changes); diff --git a/src/Relation/RefersTo.php b/src/Relation/RefersTo.php index 3790082f9..526fc9584 100644 --- a/src/Relation/RefersTo.php +++ b/src/Relation/RefersTo.php @@ -64,9 +64,6 @@ public function queue(CC $store, $entity, Node $node, $related, $original): Comm // fastest way to identify the entity $pk = $this->orm->getSchema()->define($node->getRole(), Schema::PRIMARY_KEY); - //dump('<<<------------------'); - - // todo: BUG IS HERE $this->forwardContext( $rNode, $this->outerKey, @@ -74,16 +71,6 @@ public function queue(CC $store, $entity, Node $node, $related, $original): Comm $node, $this->innerKey ); -// -// dump( -// [ -// $rNode, -// $node, -// $update -// ] -// ); -// -// dump("-------------------->>>\n\n"); // set where condition for update query $this->forwardScope(