示例#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;
 }
示例#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';
 }
示例#3
0
 /**
  * Query constructor.
  *
  * @param Generator $generator
  * @param           $metadata
  */
 public function __construct(Generator $generator, $metadata)
 {
     parent::__construct($generator, $metadata);
     $this->className .= 'Application';
 }
示例#4
0
 /**
  * Query constructor.
  *
  * @param Generator $generator
  * @param           $metadata
  */
 public function __construct(Generator $generator, $metadata)
 {
     parent::__construct($generator, $metadata);
     $this->className = 'TableTrait';
 }
示例#5
0
文件: Table.php 项目: rmolodyko/api
 /**
  * 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';
 }