jpfuentes2 / php-activerecord

ActiveRecord implementation for PHP
http://www.phpactiverecord.org/
Other
1.32k stars 443 forks source link

Wordpress Database Ids not accessible with AR #525

Open jmedina92 opened 8 years ago

jmedina92 commented 8 years ago

Hello,

I have a problem with Wordpress Database (mysql). The id field are called ID (in uppercase) in all tables and the ActiveRecord can't access to it or show it. ActiveRecord can access to all params except id.

I've changed the static $primary_key in model to all possibilities ('id', 'ID') and it does't work.

Any suggestion?

Version php-activerecord v1.1.2

jpfuentes2 commented 8 years ago

I don't see why this wouldn't work. Would you be interested in providing a reproducible example and/or failing test case?

wriver4 commented 8 years ago

Is your dev windows and linux for production?