@@ 21-31 (lines=11) @@ | ||
18 | * |
|
19 | * @return array [[Key => Value] ...] |
|
20 | */ |
|
21 | public function getTableValues() { |
|
22 | $cols = $this->persistence->getColsOfTable($this->getEntity()); |
|
23 | $values = []; |
|
24 | foreach ($this->getValues() as $col => $val) { |
|
25 | if (in_array($col, $cols)) { |
|
26 | $values[$col] = $val; |
|
27 | } |
|
28 | } |
|
29 | ||
30 | return $values; |
|
31 | } |
|
32 | ||
33 | public function execute() { |
|
34 | $values = $this->getTableValues(); |
@@ 26-36 (lines=11) @@ | ||
23 | * |
|
24 | * @return array [[Col => New Value] .. ] |
|
25 | */ |
|
26 | public function getTableValues() { |
|
27 | $cols = $this->persistence->getColsOfTable($this->getEntity()); |
|
28 | $values = []; |
|
29 | foreach ($this->getValues() as $col => $val) { |
|
30 | if (in_array($col, $cols)) { |
|
31 | $values[$col] = $val; |
|
32 | } |
|
33 | } |
|
34 | ||
35 | return $values; |
|
36 | } |
|
37 | ||
38 | public function execute() { |
|
39 | $values = $this->getTableValues(); |