<commit_before><?php

namespace BoomCMS\Core\Page\Finder;

use BoomCMS\Core\Model\Page as Model;
use BoomCMS\Core\Finder\Filter;

use Illuminate\Database\Eloquent\Builder;

class ParentId extends Filter
{
    protected $parentId;

    public function __construct($parentId)
    {
        $this->parentId = $parentId;
    }

    public function execute(Builder $query)
    {
        return $query
            ->join('page_mptt', 'page.id', '=', 'page_mptt.id')
            ->where('page_mptt.parent_id', '=', $this->parentId);
    }
}
<commit_msg>Fixed parentId page filter<commit_after><?php

namespace BoomCMS\Core\Page\Finder;

use BoomCMS\Core\Finder\Filter;

use Illuminate\Database\Eloquent\Builder;

class ParentId extends Filter
{
    protected $parentId;

    public function __construct($parentId)
    {
        $this->parentId = $parentId;
    }

    public function execute(Builder $query)
    {
        return $query->where('parent_id', '=', $this->parentId);
    }
}

{'fraction_non_alphanumeric': 0.13163265306122449, 'fraction_numerical': 0.0, 'mean_word_length': 3.1923076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4927103', 'n_tokens_mistral': 330, 'n_tokens_neox': 327, 'n_words': 61}