We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create then save a default empty row $one = Model::factory('foo')->create(); $one->save();
raises: Warning: array_fill() : Number of elements must be positive in idiorm.php on line 592
line 591 idiorm.php: protected function _create_placeholders($number_of_placeholders) { if ($number_of_placeholders) { return join(", ", array_fill(0, $number_of_placeholders, "?")); } return ""; }
The text was updated successfully, but these errors were encountered:
I've tried out this fix, and it works for me. Thanks!
Sorry, something went wrong.
This issue is fixed in commit b7da7b8 . Thanks for the patch.
Closes Issue #58 Create then save a default empty row w/Paris
b7da7b8
Forgot to update the changelog with issue #58
959bed1
treffynnon
No branches or pull requests
create then save a default empty row
$one = Model::factory('foo')->create();
$one->save();
raises:
Warning: array_fill() : Number of elements must be positive in idiorm.php on line 592
fix
line 591 idiorm.php:
protected function _create_placeholders($number_of_placeholders) {
if ($number_of_placeholders) {
return join(", ", array_fill(0, $number_of_placeholders, "?"));
}
return "";
}
The text was updated successfully, but these errors were encountered: