yii2-redis - [READ ONLY] Yii 2 Redis extension. This is a subtree split off the "yii2" repo.

  •        0

- `via`-relations can not be defined via a table as there are not tables in redis. You can only define relations via other records.It is also possible to define relations from redis ActiveRecords to normal ActiveRecord classes and vice versa.Usage example:```php$customer = new Customer();$customer->attributes = ['name' => 'test'];$customer->save();echo $customer->id; // id will automatically be incremented if not set explicitly$customer = Customer::find()->where(['name' => 'test'])->one(); // find by query$customer = Customer::find()->active()->all(); // find all by query (using the `active` scope)```




comments powered by Disqus

Related Projects

We have large collection of open source products. Follow the tags from Tag Cloud >>