/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->className = $metadata->entity . 'Query'; $this->parentClass = '\\' . \samsoncms\api\query\Record::class; $this->entityClass = '\\samsoncms\\api\\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'; }
/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->className .= 'Application'; }
/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->className = 'TableTrait'; }
/** * Query constructor. * * @param Generator $generator * @param $metadata */ public function __construct(Generator $generator, $metadata) { parent::__construct($generator, $metadata); $this->className = preg_replace('/Table$/i', '', $this->className) . 'Table'; }