I’m trying to fetch some data using findAllByPk with a primary key which consists of two fields:
Some_model::model ()->findAllByPk ( array ( 'field1' => 1 ) );
Running this code I always get an error like: The value for the column "field2" is not supplied when querying the table "Some_model".
Does anyone have an idea about how to query the table based on a single field?