/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->className = $metadata->entity . 'Query'; $this->parentClass = '\\' . \samsonframework\orm\query\Record::class; $this->entityClass = '\\samsonframework\\orm\\generated\\' . $metadata->entity; }
/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->parentClass = $this->className . 'Query'; $this->className .= 'Collection'; }