Вот класс State от стандарного пакета 1.4.11
class StateCore extends ObjectModel
{
/** @var integer Country id which state belongs */
public $id_country;
/** @var integer Zone id which state belongs */
public $id_zone;
/** @var string 2 letters iso code */
public $iso_code;
/** @var string Name */
public $name;
/** @var boolean Status for delivery */
public $active = true;
protected $fieldsRequired = array('id_country', 'id_zone', 'iso_code', 'name');
protected $fieldsSize = array('iso_code' => 4, 'name' => 32);
protected $fieldsValidate = array('id_country' => 'isUnsignedId', 'id_zone' => 'isUnsignedId', 'iso_code' => 'isStateIsoCode', 'name' => 'isGenericName', 'active' => 'isBool');
protected $table = 'state';
protected $identifier = 'id_state';
protected $webserviceParameters = array(
'fields' => array(
'id_zone' => array('xlink_resource'=> 'zones'),
'id_country' => array('xlink_resource'=> 'countries')
),
);
public function getFields()
{
parent::validateFields();
$fields['id_country'] = (int)$this->id_country;
$fields['id_zone'] = (int)$this->id_zone;
$fields['iso_code'] = pSQL(strtoupper($this->iso_code));
$fields['name'] = pSQL($this->name);
$fields['active'] = (int)$this->active;
return $fields;
}
Нет индекса.
У вас какие поля в админке?