Thanks, now I've generated models and sql by command line, got new table filter_category in DB with fk named category_id and necessary files in Filter/Model dir.
Next obstacle is that Virtual Columns of hte model are not available. I've found that the problem is in this place:
public function buildModelCriteria()
{
$search = FilterCategoryQuery::create();
$search_category = $search->useCategoryQuery();
/* manage translations */
$this->configureI18nProcessing($search, array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM', 'META_TITLE', 'META_DESCRIPTION', 'META_KEYWORDS'), 'category', 'category_id');
So guessing I must properly change the parameters of configureI18nProcessing method.
Tried the following analyzing the signature.
protected function configureI18nProcessing(ModelCriteria $search, $columns = array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), $foreignTable = null, $foreignKey = 'ID', $forceReturn = false)
Changing the $search parameter and adding $foreignTable = 'category' and $foreignKey = 'category_id'. But nothing worked.
$this->configureI18nProcessing($search, array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM', 'META_TITLE', 'META_DESCRIPTION', 'META_KEYWORDS'));
$this->configureI18nProcessing($search, array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM', 'META_TITLE', 'META_DESCRIPTION', 'META_KEYWORDS'), 'category', 'category_id');
$this->configureI18nProcessing($search_category , array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM', 'META_TITLE', 'META_DESCRIPTION', 'META_KEYWORDS'));
$this->configureI18nProcessing($search_category , array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM', 'META_TITLE', 'META_DESCRIPTION', 'META_KEYWORDS'), 'category', 'category_id');
Last edited by Vdomah (05-11-2014 18:46:45)