@@ 52-57 (lines=6) @@ | ||
49 | const MODE_SAVE = 0; |
|
50 | const MODE_UPDATE = 1; |
|
51 | ||
52 | public function __construct(ORMContext $context, RecordWrapper $wrapper, DriverAdapter $adapter) { |
|
53 | $this->wrapper = $wrapper; |
|
54 | $this->adapter = $adapter; |
|
55 | $this->driver = $context->getDbContext()->getDriver(); |
|
56 | $this->container = $context->getContainer(); |
|
57 | } |
|
58 | ||
59 | public function doSave($hasMultipleData) { |
|
60 | $this->hasMultipleData = $hasMultipleData; |
@@ 55-60 (lines=6) @@ | ||
52 | * @param DriverAdapter $adapter |
|
53 | * @param DataOperations $dataOperations |
|
54 | */ |
|
55 | public function __construct(ORMContext $context, RecordWrapper $wrapper, DriverAdapter $adapter, $dataOperations) { |
|
56 | $this->wrapper = $wrapper; |
|
57 | $this->adapter = $adapter; |
|
58 | $this->dataOperations = $dataOperations; |
|
59 | $this->driver = $context->getDbContext()->getDriver(); |
|
60 | } |
|
61 | ||
62 | public function doFetch($id = null) { |
|
63 | $parameters = $this->getFetchQueryParameters($id); |