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)```

https://github.com/yiisoft/yii2-redis

Tags
Implementation
License
Platform

   

comments powered by Disqus


Related Projects







Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.

Tag Cloud >>