<commit_before><?php
class Vpc_Directories_Category_Detail_List_Component extends Vpc_Directories_List_Component
{
    public function getSelect()
    {
        $select = parent::getSelect();
        $s = new Vps_Model_Select();
        $s->whereEquals('category_id', $this->getData()->parent->id);
        $select->where(new Vps_Model_Select_Expr_Child_Contains('Categories', $s));

        return $select;
    }

    protected function _getItemDirectory()
    {
        return $this->getData()->parent->parent->parent;
    }

    //wurder ursprünglich hier verwendet was jedoch auf Expr_Child_Contains umgeschireben wurde
    static public function getTableReferenceData($relationModel, $rule/* = 'Item'*/)
    {
        if (is_string($relationModel)) {
            $relationModel = Vps_Model_Abstract::getInstance($relationModel);
        }

        $reference = $relationModel->getReference($rule);
        $dataModel = Vps_Model_Abstract::getInstance($reference['refModelClass']);
        while ($dataModel instanceof Vps_Model_Proxy) {
            $dataModel = $dataModel->getProxyModel();
        }

        return array(
            'tableName' => $relationModel->getTableName(),
            'itemColumn' => $reference['column'],
            'refItemColumn' => $dataModel->getPrimaryKey(),
            'refTableName' => $dataModel->getTableName()
        );
    }
}<commit_msg>Directory mit Kategorien: Bug bei Zugriff auf Table-Daten behoben<commit_after><?php
class Vpc_Directories_Category_Detail_List_Component extends Vpc_Directories_List_Component
{
    public function getSelect()
    {
        $select = parent::getSelect();
        $s = new Vps_Model_Select();
        $s->whereEquals('category_id', $this->getData()->parent->id);
        $select->where(new Vps_Model_Select_Expr_Child_Contains('Categories', $s));

        return $select;
    }

    protected function _getItemDirectory()
    {
        return $this->getData()->parent->parent->parent;
    }

    //wurder ursprünglich hier verwendet was jedoch auf Expr_Child_Contains umgeschireben wurde
    static public function getTableReferenceData($relationModel, $rule/* = 'Item'*/)
    {
        if (is_string($relationModel)) {
            $relationModel = Vps_Model_Abstract::getInstance($relationModel);
        }

        $reference = $relationModel->getReference($rule);
        $dataModel = Vps_Model_Abstract::getInstance($reference['refModelClass']);
        while ($dataModel instanceof Vps_Model_Proxy) {
            $dataModel = $dataModel->getProxyModel();
        }

        return array(
            'tableName' => $relationModel->getProxyModel()->getTableName(),
            'itemColumn' => $reference['column'],
            'refItemColumn' => $dataModel->getPrimaryKey(),
            'refTableName' => $dataModel->getTableName()
        );
    }
}
{'fraction_non_alphanumeric': 0.12750968650933428, 'fraction_numerical': 0.0, 'mean_word_length': 3.170337738619677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5557143', 'n_tokens_mistral': 792, 'n_tokens_neox': 793, 'n_words': 138}