yii2-dynamic-ar
yii2-dynamic-ar copied to clipboard
An extension to add NoSQL-like documents to Yii 2 Framework's Active Record ORM.
If a dynamic column name starts with number it does not work.is there a solution? example : `$product = new Product([ 'sku' => 5463, 'upc' => '234569', 'price' => 4.99,...
This is the work so far There are 2 tests failing and 1 in error see pgencoder7.xml I'll create a bug report tomorrow to let you know of the progress...
If you try to validate nested attributes, it does not work - so even your example is wrong: ```php public function rules() { return [['dimensions.length', 'double', 'min' => 0.0]]; }...
hi tom, user post form with value like this: ``` product[name]='name'; product[color][0]='red'; product[color][1]='blue'; ``` i save colors to dynamic field and want to search for all > product where color...
```php Item::find()->distinct()->count(); ``` Error: ```php Column already exists: 1060 Duplicate column name 'dynamic column' ```
Hi, I came across this issue when integrating DynamicActiveRecord into my project. I use scopes to restrict data access for the current user, and these scopes LEFT JOIN a secondary...
On the "actual" thing , some info on what happens running this with the current implementation ```php $person = new Person([ 'person_fname' => 'lapo', 'person_lname' => 'kapo', 'phone1' => '2810222333',...
Refactor `DynamicActiveRecord` so that methods use `parent::` only to call the parent of the same method, e.g. `DynamicActiveRecord::getAttribute()` is allowed to call `parent::getAttribute()` but not `parent::__get()`. Does this [improve maintainability](https://github.com/yiisoft/yii2/issues/9656#issuecomment-158679162)...
If add to from dynamic field e.g: ``` $form->field($product, 'dynamic_attribute_name') ->dropDownList(explode(',', $attribute->variants), ['required' => $attribute->required]) ->label($attribute->title); ``` those attributes will not saved.