php-activerecord icon indicating copy to clipboard operation
php-activerecord copied to clipboard

Wordpress Database Ids not accessible with AR

Open jmedina92 opened this issue 9 years ago • 2 comments

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

jmedina92 avatar Mar 04 '16 13:03 jmedina92

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

jpfuentes2 avatar May 24 '16 02:05 jpfuentes2

Is your dev windows and linux for production?

wriver4 avatar May 25 '16 06:05 wriver4