Skip to content

Commit

Permalink
[update] refactor CSV persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehristov committed Aug 17, 2020
1 parent da3cac8 commit c067309
Show file tree
Hide file tree
Showing 8 changed files with 499 additions and 657 deletions.
10 changes: 2 additions & 8 deletions src/Persistence/Array_.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ public function __construct(array $data = [])
*/
protected $lastInsertIds = [];

/**
* @deprecated TODO temporary for these:
* - https://github.com/atk4/data/blob/90ab68ac063b8fc2c72dcd66115f1bd3f70a3a92/src/Reference/ContainsOne.php#L119
* - https://github.com/atk4/data/blob/90ab68ac063b8fc2c72dcd66115f1bd3f70a3a92/src/Reference/ContainsMany.php#L66
* remove once fixed/no longer needed
*/
public function getRawDataByTable(string $table): array
public function getRawDataIterator($table): \Iterator
{
return $this->data[$table];
return new \ArrayIterator($this->data[$table]);
}

public function setRawData(Model $model, $data, $id = null)
Expand Down
Loading

0 comments on commit c067309

Please sign in to comment.