Fix grepping about.

This commit is contained in:
Dane Everitt 2017-02-15 16:57:45 -05:00
parent cea2d040eb
commit 788de1b23a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ class ServiceVariable extends Model
'required' => 'integer',
];
public function ServerVariable()
public function serverVariable()
{
return $this->hasMany(ServerVariable::class, 'variable_id');
}

View file

@ -76,11 +76,11 @@ class Variable
public function delete($id)
{
$variable = Models\ServiceVariable::with('ServerVariable')->findOrFail($id);
$variable = Models\ServiceVariable::with('serverVariable')->findOrFail($id);
DB::beginTransaction();
try {
foreach ($variable->ServerVariable as $svar) {
foreach ($variable->serverVariable as $svar) {
$svar->delete();
}
$variable->delete();