Пример #1
0
 public function __construct($entityType, $bundle)
 {
     parent::__construct($entityType);
     $this->bundle = $bundle;
     // first of all, lets filter by bundle, keep in mind that user is an exception, no type field for user even though there is a bundle defined
     if (!empty($this->bundle)) {
         $this->addCondition(new Condition('type', '=', $this->bundle));
     }
 }