Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Work Around For Composite Primary Key If Using Scope?

$
0
0
Good Afternoon!

I have a table which has a composite primary key (id, data_year), and I set up a default scope to always search one specific data_year. Since half the primary key is already accounted for, why do I still get a 400 error when I'm trying to pull a record up by ID?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>