@@ 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); |
@@ 58-63 (lines=6) @@ | ||
55 | const MODE_SAVE = 0; |
|
56 | const MODE_UPDATE = 1; |
|
57 | ||
58 | public function __construct(ORMContext $context, RecordWrapper $wrapper, DriverAdapter $adapter) { |
|
59 | $this->wrapper = $wrapper; |
|
60 | $this->adapter = $adapter; |
|
61 | $this->driver = $context->getDbContext()->getDriver(); |
|
62 | $this->container = $context->getContainer(); |
|
63 | } |
|
64 | ||
65 | public function doSave($hasMultipleData) { |
|
66 | $this->hasMultipleData = $hasMultipleData; |