<?
// Новости
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', 3)
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl'

->getByName('РекомендуемГлавная'

)
->groupsMode('none'

->itemsForbiddenTags(array('text'

)
->group(FALSE)
->limit(3)
//->show()
;
// Объединение с нужной таблицей свойств
$Shop_Controller_Show
->Shop()
->queryBuilder()
->leftJoin('Shop_item_properties', 'Shop_items.Shop_id', '=', 'Shop_item_properties.Shop_id'

->leftJoin('property_value_ints', 'Shop_items.id', '=', 'property_value_ints.entity_id',
array(
array('AND' => array('Shop_item_properties.property_id', '=', Core_QueryBuilder::expression('`property_value_ints`.`property_id`'

))
)
)
// Идентификатор дополнительного свойства
->where('informationsystem_item_properties.property_id', '=', 19)
// Значание дополнительного свойства
->where('property_value_ints.value', '=', '123'

->groupBy('informationsystem_items.id'

// Количество свойств
->having(Core_Querybuilder::expression('COUNT(DISTINCT `Shop_item_properties`.`property_id`)'

, '=', 1)
;
$Shop_Controller_Show->show();
?>
Exception: The method 'Shop' does not exist in 'Shop_Controller_Show'
35 modules/core/exception.php
110 modules/core/servant/properties.php
94 templates/template28/template.htm
86 modules/template/model.php
100 modules/core/page.php
375 modules/core/command/controller/default.php
190 modules/core/router/route.php
205 index.php