src/generator/RealQuery.php 1 location
|
@@ 28-35 (lines=8) @@
|
| 25 |
|
* @param Generator $generator |
| 26 |
|
* @param $metadata |
| 27 |
|
*/ |
| 28 |
|
public function __construct(Generator $generator, $metadata) |
| 29 |
|
{ |
| 30 |
|
parent::__construct($generator, $metadata); |
| 31 |
|
|
| 32 |
|
$this->className .= 'Query'; |
| 33 |
|
$this->parentClass = '\\' . \samsoncms\api\query\Record::class; |
| 34 |
|
$this->entityClass = '\samsoncms\api\generated\\' . $metadata->entity; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* Class uses generation part. |
src/generator/VirtualQuery.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
* @param Generator $generator |
| 23 |
|
* @param $metadata |
| 24 |
|
*/ |
| 25 |
|
public function __construct(Generator $generator, $metadata) |
| 26 |
|
{ |
| 27 |
|
parent::__construct($generator, $metadata); |
| 28 |
|
|
| 29 |
|
$this->className .= 'Query'; |
| 30 |
|
$this->parentClass = '\\' . \samsoncms\api\query\Entity::class; |
| 31 |
|
$this->entityClass = '\samsoncms\api\generated\\' . $metadata->entity; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* Class static fields generation part. |