| @@ 79-93 (lines=15) @@ | ||
| 76 | * @param MemoryInterface $memory |
|
| 77 | * @param FactoryInterface $factory |
|
| 78 | */ |
|
| 79 | public function __construct( |
|
| 80 | MongoManager $manager, |
|
| 81 | SchemaLocator $locator, |
|
| 82 | MemoryInterface $memory, |
|
| 83 | FactoryInterface $factory |
|
| 84 | ) { |
|
| 85 | $this->manager = $manager; |
|
| 86 | $this->locator = $locator; |
|
| 87 | ||
| 88 | $this->memory = $memory; |
|
| 89 | $this->factory = $factory; |
|
| 90 | ||
| 91 | //Loading schema from memory (if any) |
|
| 92 | $this->schema = $this->loadSchema(); |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Create instance of ORM SchemaBuilder. |
|
| @@ 70-84 (lines=15) @@ | ||
| 67 | * @param MemoryInterface $memory |
|
| 68 | * @param FactoryInterface $factory |
|
| 69 | */ |
|
| 70 | public function __construct( |
|
| 71 | DatabaseManager $manager, |
|
| 72 | SchemaLocator $locator, |
|
| 73 | MemoryInterface $memory, |
|
| 74 | FactoryInterface $factory |
|
| 75 | ) { |
|
| 76 | $this->manager = $manager; |
|
| 77 | $this->locator = $locator; |
|
| 78 | ||
| 79 | $this->memory = $memory; |
|
| 80 | $this->factory = $factory; |
|
| 81 | ||
| 82 | //Loading schema from memory (if any) |
|
| 83 | $this->schema = $this->loadSchema(); |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Create instance of ORM SchemaBuilder. |
|