Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * 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';
 }
Beispiel #3
0
 /**
  * Query constructor.
  *
  * @param Generator $generator
  * @param           $metadata
  */
 public function __construct(Generator $generator, $metadata)
 {
     parent::__construct($generator, $metadata);
     $this->className .= 'Application';
 }
Beispiel #4
0
 /**
  * Query constructor.
  *
  * @param Generator $generator
  * @param           $metadata
  */
 public function __construct(Generator $generator, $metadata)
 {
     parent::__construct($generator, $metadata);
     $this->className = 'TableTrait';
 }
Beispiel #5
0
 /**
  * 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';
 }