$customers=Customer::mget([1,2,3]);// get multiple records by pk
$customer=Customer::find()->where(['name'=>'test'])->one();// find by query
$customer=Customer::find()->where(['name'=>'test'])->one();// find by query, note that you need to configure mapping for this field in order to find records properly
$customers=Customer::find()->active()->all();// find all by query (using the `active` scope)