Difference between #1 and #2 of
Working with relational removals by yii2

Revision #2 has been created by AndroideLP on May 11, 2017, 8:59:48 PM with the memo:

Dados novos
« previous (#1) next (#3) »

Changes

Title unchanged

Working with relational removals by yii2

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

model, relations, remove, delete

Content changed

[...]
{
$game->delete();
}

}
     // deletando de vinculo
 
     public function actionDeleteTestAll()
 
     {
 
       $game = Games::findOne(1);
 
       foreach($game->tests as $test)
 
       {
 
          $test->delete();
 
       }
 
     }
 


public function actionDeleteTheRelation($id)
{
[...]
0 0
2 followers
Viewed: 13 497 times
Version: 2.0
Category: Tutorials
Written by: AndroideLP
Last updated by: Jairus Martin
Created on: Dec 23, 2016
Last updated: a year ago
Update Article

Revisions

View all history