bscheshirwork
bscheshirwork
I will set config of `User` class into `modelMap`. I expect "create new object with config". Right?
@SamMousa https://github.com/yiisoft/yii2/blob/72b69e359a3d35bfb5fab55b7ca20e56a9e51cf1/framework/db/BaseActiveRecord.php#L1165-L1181 tell we about redefine it if needed
... And so many times in framework code using DI in same case. Case "set class throw config"
`modelMap` property is a `config` to set you own classes
If we use ```php new static(); ``` we lose any config settings and use standard AR class in data population after find. >I don't use the module anymore p.s.: @SamMousa...
@Senegal to some like this https://github.com/bscheshirwork/yii2-redis-session
I have a problem with build a fresh php + pthreads > /pthreads/php_pthreads.c:38:3: error: #error "pthreads requires PHP 7.2, ZTS in versions 7.0 and 7.1 is broken" # error "pthreads...
@mikk150 yes, I use the CLI executor and 4 separated worker process started with supervisor. You tell about a one process and many workers in separated thread?
workaround https://gist.github.com/bscheshirwork/36a3aec9a4d66106e6cd4a65eaf6c5ab
+ no need user_id. So clearly. - additional request to db - BC can be broken (url manager rule will be changed)