public function loadByConditions($model)
{
$ids = $this->getIdsFromConditions($model->_table[$this->short_name], $model->conditions);
if (!empty($ids)) {
$id = array_pop($ids);
$model->id = $id;
$model->data = $model->_table[$this->short_name][$id];
}
}