class Object implements Configurable
{
public function __get($name)
{
$getter = 'get' . $name;
if (method_exists($this, $getter)) {
return $this->$getter();
} elseif (method_exists($this, 'set' . $name)) {
throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
} else {
throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name);
}
}
.nmy {
position: fixed;
right: 0;
bottom: 0;
position: -webkit-sticky;
position: -moz-sticky;
position: -ms-sticky;
position: -o-sticky;
position: sticky;
}
public function toEvent($event_id)
{
return $this->joinWith('toEvent')->andWhere(['event.to_event' => $event_id])
}
а зачем их хранить? Они вначале в html в виде инпутов, потом в виде post запроса, помто через load попадают в model, потом когда model сохранена, запускается логика из afterSave и там они сохраняются в БД (тут уже есть model->id). Где в этой схеме есть необходимость их куда-то сохранять, по ходу паровоза?