| @@ 26-33 (lines=8) @@ | ||
| 23 | * @param Generator $generator |
|
| 24 | * @param $metadata |
|
| 25 | */ |
|
| 26 | public function __construct(Generator $generator, $metadata) |
|
| 27 | { |
|
| 28 | parent::__construct($generator, $metadata); |
|
| 29 | ||
| 30 | $this->className = rtrim($this->metadata->entity, 'Table') . 'TableCollection'; |
|
| 31 | $this->parentClass = rtrim($this->metadata->entity, 'Table') . 'TableQuery'; |
|
| 32 | $this->entityClass = rtrim($this->metadata->entity, 'Table') . 'TableEntity'; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Class constructor generation part. |
|
| @@ 26-33 (lines=8) @@ | ||
| 23 | * @param Generator $generator |
|
| 24 | * @param $metadata |
|
| 25 | */ |
|
| 26 | public function __construct(Generator $generator, $metadata) |
|
| 27 | { |
|
| 28 | parent::__construct($generator, $metadata); |
|
| 29 | ||
| 30 | $this->className = rtrim($this->metadata->entity, 'Table') . 'TableQuery'; |
|
| 31 | $this->parentClass = '\\' . \samsoncms\api\query\EntityTable::class; |
|
| 32 | $this->entityClass = rtrim($this->metadata->entity, 'Table') . 'TableEntity'; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Class uses generation part. |
|