Created
October 23, 2012 11:07
-
-
Save frankdejonge/3938210 to your computer and use it in GitHub Desktop.
Tester
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static function delete_translations($obj) | |
{ | |
$translation = static::find(function($query) use($obj){ | |
$query->where('parent_id', $obj->id); | |
}); | |
foreach($translation as $row) | |
{ | |
$row->delete(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment