Skip to content

Commit

Permalink
- CS
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jul 16, 2020
1 parent 6450ac5 commit f2d2bc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/Mapper/DatabaseMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
13 changes: 0 additions & 13 deletions src/Relation/RefersTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,13 @@ 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,
$update,
$node,
$this->innerKey
);
//
// dump(
// [
// $rNode,
// $node,
// $update
// ]
// );
//
// dump("-------------------->>>\n\n");

// set where condition for update query
$this->forwardScope(
Expand Down

0 comments on commit f2d2bc9

Please sign in to comment.