где хранить записи
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])
}
хорошо делали)))
Заходите в метод регистрации, по идее у Вас это модель SignupForm и метод signup и в момент, когда юзер создан добавляете ему роль: