fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
152 stars 96 forks source link

Where statement omitted operator problem #415

Closed yama closed 6 years ago

yama commented 6 years ago
->related('author')
->where('author', '=', 1);

Work. It's no problem.

->related('author')
->where('author', 1);

PHP notice display an error. It does not work in the my dev-environment.

https://github.com/fuel/orm/blob/1.8.0.1/classes/hasone.php#L97-L107 This problem can be fixed within this block.

https://github.com/fuel/orm/blob/1.8.0.1/classes/query.php#L526-L529 Add this process.

thanks for fuelphp.