fix paernt fields like in Account, etc.
This commit is contained in:
@@ -89,14 +89,14 @@ class Links
|
||||
}
|
||||
|
||||
|
||||
protected function belongsToParent($params, $foreignParams)
|
||||
/*protected function belongsToParent($params, $foreignParams)
|
||||
{
|
||||
return $this->getRelations()->belongsToParent($params, $foreignParams);
|
||||
}
|
||||
}*/
|
||||
|
||||
protected function linkParent($params, $foreignParams)
|
||||
{
|
||||
return $this->getRelations()->belongsToParent($params, $foreignParams);
|
||||
return $this->getRelations()->linkParent($params, $foreignParams);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -188,7 +188,8 @@ class Relations
|
||||
}
|
||||
|
||||
//uses for belongsToParent and linkParent
|
||||
public function belongsToParent($params, $foreignParams)
|
||||
//public function belongsToParent($params, $foreignParams)
|
||||
public function linkParent($params, $foreignParams)
|
||||
{
|
||||
$relation = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user