-
Notifications
You must be signed in to change notification settings - Fork 443
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
count(): Parameter must be an array or an object that implements Countable in ActiveRecord\Model::find_by_pk() (line 1670 of php-activerecord/lib/Model.php) #588
Comments
I have the same problem |
same are there solutions ? |
you can hack |
not an option if table has more than one primary key and you need more than one result. |
yes, just a small hack that worked for me, until your PR is not merged |
Currently dealing with this on a site that I want to update from PHP 7.1 => 7.2. I'm pulling in |
Hi. I am also pulling via composer. Looking forward for a fix. Thanks! |
Instead of modifying the core function you could also use: |
also this variant working Model::find_by_id($id); |
count(): Parameter must be an array or an object that implements Countable in ActiveRecord\Model::find_by_pk() (line 1670 of php-activerecord/lib/Model.php)
PHP 7.2
The text was updated successfully, but these errors were encountered: