public function getPartners(){
$sql = 'SELECT dam as partner_id FROM pedigrees WHERE (sire=:id and dam<>0) group by dam union SELECT sire as partner_id FROM pedigrees WHERE (dam=:id and sire<>0) group by sire order by (select name from pedigrees a where id=:partner_id)';
$partner = Pedigrees::findBySql($sql, [':id' => $id, 'partner_id' => $partner_id])->all();
return $partner;
}
Yii::$app->request->post()
Yii::$app->request->bodyParams
mViewPager.setOffscreenPageLimit(0);
export default function (state = innitialState, action) {
switch (action.type) {
case 'SELECT__DATE':
return Object.assign({}, state, {
date: state.date + action.payload,
});
break;
}
}