Skip to content

Releases: mootensai/yii2-relation-trait

Bug fixes

10 Nov 02:35
Compare
Choose a tag to compare

bug fixing of 1.1.7

see issues #47

Support standard form array of POST and bug fix

28 Sep 08:24
Compare
Choose a tag to compare

Support standard form array of POST and bug fix

support form array like

Array
(
    [attr1] => value1
    [attr2] => value2
    [relationName] => Array
        (
            [0] => Array
                (
                    [attr1] => value1
                    [attr2] => value2
                )
        )
)

fix issues
#46 , #45

Add Soft Delete/Restore Feature!

23 Jul 13:27
Compare
Choose a tag to compare

Adding Soft Delete/Restore feature!

add this line to your Model to enable soft delete

private $_rt_softdelete = ['<column>' => <deleted row marker value>];

example

private $_rt_softdelete = ['isdeleted' => 1];

or

private $_rt_softdelete = ['deleted_by' => Yii::app()->user->id]

add this line to your Model to enable soft restore

private $_rt_softrestore = ['<column>' => <undeleted row marker value];

example

private $_rt_softrestore = ['isdeleted' => 0];

or

private $_rt_softdelete = ['deleted_by' => 0];

Change delete SQL to Yii Query Builder

12 Jul 07:25
Compare
Choose a tag to compare
  • Change delete SQL to Yii Query Builder to fix different database quoting like issue #30
  • Fix translation message error for Yii:t('mtrelt',"xx")

Fix #19

25 Jul 08:46
Compare
Choose a tag to compare

Fixing #19
no added features, sorry.

Anybody got more idea?

Bug fixes & change

11 Jun 04:47
Compare
Choose a tag to compare

Bug fixes for #10, #17, #15

There's change for getRelationData() function.
Last getRelationData() return array like this

[0] => 
  ['name'] => 'relation',
  ...

now it return array index with relation names

['relation'] => 
  ['name'] => 'relation',
  ...

Add support for hasOne Relation, skippedRelations & bug fix

08 Jun 10:03
Compare
Choose a tag to compare

Add support for hasOne Relation, skippedRelations & bug fix

Please try! Thank you for your contribution & support by clicking the star button 😄

Fixes #7

26 Feb 07:03
Compare
Choose a tag to compare

This update fixes issue #7

Fix bug when create still wants to delete data

24 Feb 03:36
Compare
Choose a tag to compare

Fix bug when the model is new record
the trait still wants to delete data

Minor bug fix

22 Feb 15:35
Compare
Choose a tag to compare

Minor bug fix.
remove empty() on line 39 to support PHP below 5.5