mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Assign before actually using it.
This commit is contained in:
parent
026565033b
commit
67a65663a7
1 changed files with 2 additions and 2 deletions
|
@ -1606,13 +1606,13 @@ class DboSource extends DataSource {
|
|||
switch ($type) {
|
||||
case 'hasOne':
|
||||
case 'belongsTo':
|
||||
$self = ($Model->name === $linkModel->name);
|
||||
|
||||
$conditions = $this->_mergeConditions(
|
||||
$assocData['conditions'],
|
||||
$this->getConstraint($type, $Model, $linkModel, $association, array_merge($assocData, compact('external', 'self')))
|
||||
);
|
||||
|
||||
$self = ($Model->name === $linkModel->name);
|
||||
|
||||
if (!$self && $external) {
|
||||
$modelAlias = $Model->alias;
|
||||
foreach ($conditions as $key => $condition) {
|
||||
|
|
Loading…
Reference in a new issue