Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : Too few arguments to function app\models\base\Penilaian::getPenilaianDetsWithParam(), 0 passed and exactly 1 expected #51

Open
moysoft opened this issue Dec 1, 2017 · 0 comments

Comments

@moysoft
Copy link

moysoft commented Dec 1, 2017

I have created a manual method for filtering relation data. But relation trait not supported this method with a parameter or how to send the parameter to this new method? Thank you.

public function getPenilaianDetsWithParam($kinerjaId)
    {
        return $this->hasMany(\app\models\PenilaianDet::className(), ['penilaian_id' => 'id'])->where('kinerja_id = :kinerjaId', [':kinerjaId' => $kinerjaId])
            ->orderBy('kinerja_id');
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant