Здравствуйте, в шаблоне пишу следующее:
<?php
$Shop_Controller_Show = new Shop_Controller_Show(
Core_Entity::factory('Shop', 6)
);
$Shop_Controller_Show
->xsl(
Core_Entity::factory('Xsl')->getByName('shop_item_index')
)
->groupsMode('tree')
->itemsForbiddenTags(array('text'))
//->group($ids[$i])
->itemsProperties(TRUE)
->limit(10)
//->show()
;
// Объединение с нужной таблицей свойств
$Shop_Controller_Show
->ShopItems()
->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('shop_item_properties.property_id', '=', 63)
// Значение дополнительного свойства
->where('property_value_ints.value', '=', '1')
->groupBy('shop_items.id')
// Количество свойств
//->having(Core_Querybuilder::expression('COUNT(DISTINCT `shop_item_properties`.`property_id`)'), '=', 1)
;
$Shop_Controller_Show->show();
?>
У меня возвращается такое XML:
<shop id="">
<shop_dir_id></shop_dir_id>
<shop_company_id></shop_company_id>
<site_id></site_id>
<name></name>
<description></description>
<yandex_market_name></yandex_market_name>
<image_small_max_width></image_small_max_width>
<image_small_max_height></image_small_max_height>
<image_large_max_width></image_large_max_width>
<image_large_max_height></image_large_max_height>
<structure_id></structure_id>
<shop_country_id></shop_country_id>
<shop_currency_id></shop_currency_id>
<shop_tax_id></shop_tax_id>
<shop_order_status_id></shop_order_status_id>
<shop_measure_id></shop_measure_id>
<email></email>
<items_on_page></items_on_page>
<url_type></url_type>
<reserve></reserve>
<send_order_email_admin></send_order_email_admin>
<send_order_email_user></send_order_email_user>
<items_sorting_field></items_sorting_field>
<items_sorting_direction></items_sorting_direction>
<groups_sorting_field></groups_sorting_field>
<groups_sorting_direction></groups_sorting_direction>
<user_id></user_id>
<comment_active></comment_active>
<watermark_file></watermark_file>
<watermark_default_use_large_image></watermark_default_use_large_image>
<watermark_default_use_small_image></watermark_default_use_small_image>
<watermark_default_position_x></watermark_default_position_x>
<watermark_default_position_y></watermark_default_position_y>
<guid></guid>
<format_date></format_date>
<format_datetime></format_datetime>
<typograph_default_items></typograph_default_items>
<typograph_default_groups></typograph_default_groups>
<apply_tags_automatically></apply_tags_automatically>
<write_off_paid_items></write_off_paid_items>
<apply_keywords_automatically></apply_keywords_automatically>
<change_filename></change_filename>
<attach_digital_items></attach_digital_items>
<yandex_market_sales_notes_default></yandex_market_sales_notes_default>
<siteuser_group_id></siteuser_group_id>
<use_captcha></use_captcha>
<group_image_small_max_width></group_image_small_max_width>
<group_image_large_max_width></group_image_large_max_width>
<group_image_small_max_height></group_image_small_max_height>
<group_image_large_max_height></group_image_large_max_height>
<producer_image_small_max_width></producer_image_small_max_width>
<producer_image_large_max_width></producer_image_large_max_width>
<producer_image_small_max_height></producer_image_small_max_height>
<producer_image_large_max_height></producer_image_large_max_height>
<preserve_aspect_ratio></preserve_aspect_ratio>
<preserve_aspect_ratio_small></preserve_aspect_ratio_small>
<preserve_aspect_ratio_group></preserve_aspect_ratio_group>
<preserve_aspect_ratio_group_small></preserve_aspect_ratio_group_small>
<reserve_hours></reserve_hours>
<adult></adult>
<cpa></cpa>
<order_admin_subject></order_admin_subject>
<order_user_subject></order_user_subject>
<confirm_admin_subject></confirm_admin_subject>
<confirm_user_subject></confirm_user_subject>
<cancel_admin_subject></cancel_admin_subject>
<cancel_user_subject></cancel_user_subject>
<seo_group_title_template></seo_group_title_template>
<seo_group_keywords_template></seo_group_keywords_template>
<seo_group_description_template></seo_group_description_template>
<seo_item_title_template></seo_item_title_template>
<seo_item_keywords_template></seo_item_keywords_template>
<seo_item_description_template></seo_item_description_template>
<deleted></deleted>
<http>//style.ru</http>
<url>/</url>
<captcha_id>0</captcha_id>
<siteuser_id>0</siteuser_id>
<group>0</group>
<page>0</page>
<limit>10</limit>
<total>0</total>
<shop_item_properties></shop_item_properties>
<size_measure>
<name>Key 'size_measure_' in 'ru' language does not exist for model 'shop'.</name>
</size_measure>
</shop>
Меня интересует строка :
<name>Key 'size_measure_' in 'ru' language does not exist for model 'shop'.</name>
Почему возникает такая ошибка?
Заранее большое спасибо!