| @@ 68-77 (lines=10) @@ | ||
| 65 | /** |
|
| 66 | * {@inheritdoc} |
|
| 67 | */ |
|
| 68 | public function __invoke() |
|
| 69 | { |
|
| 70 | $marks = []; |
|
| 71 | ||
| 72 | foreach ($this->data as $field => $value) { |
|
| 73 | $marks[":{$field}"] = $value; |
|
| 74 | } |
|
| 75 | ||
| 76 | return $this->table->getDatabase()->execute((string) $this, $marks); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * {@inheritdoc} |
|
| @@ 56-65 (lines=10) @@ | ||
| 53 | /** |
|
| 54 | * {@inheritdoc} |
|
| 55 | */ |
|
| 56 | public function __invoke() |
|
| 57 | { |
|
| 58 | $marks = $this->marks; |
|
| 59 | ||
| 60 | foreach ($this->data as $fieldName => $value) { |
|
| 61 | $marks[":__{$fieldName}"] = $value; |
|
| 62 | } |
|
| 63 | ||
| 64 | return $this->table->getDatabase()->execute((string) $this, $marks); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|