tareq1988 / wp-eloquent

Eloquent ORM for WordPress
https://tareq.co/2015/05/eloquent-orm-in-wordpress/
566 stars 135 forks source link

many to many #47

Open napoleon101392 opened 6 years ago

napoleon101392 commented 6 years ago

attaching many to many rel doesnt have prefix on the query executed

executed: insert into user_post (user_id, post_id) values (7, 42) expectation: insert into prefix_user_post (user_id, post_id) values (7, 42)

Tofandel commented 5 years ago

Is your user post model's getTable method correctly defined?