Пример #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 = '\\' . \samsonframework\orm\query\Record::class;
     $this->entityClass = '\\samsonframework\\orm\\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';
 }