Hello, is it possible to get the index of the current model:
<?php
$this->hasOne(
'id',
'fastPanel\Content\Models\Page\Locale',
'page_id',
[
'alias' => 'content',
'params' => [
'conditions' =>
" locale = '" . $translate->getCurrentLang() . "'" .
" OR locale = '" . $translate->getDefaultLang() . "'" .
" AND page_id = :APR0" .
" OR locale = '" . \fastPanel\Translate::FALLBACK . "'" .
" AND page_id = :APR0"
]
]
);
OR
<?php
$this->hasOne(
'id',
'fastPanel\Content\Models\Page\Locale',
'page_id',
[
'alias' => 'content',
'params' => [
'conditions' =>
" locale = '" . $translate->getCurrentLang() . "'" .
" OR locale = '" . $translate->getDefaultLang() . "'" .
" AND fastPanel\\Content\\Models\\Page\\Locale.page_id = fastPanel\\Content\\Models\\Page.id" .
" OR locale = '" . \fastPanel\Translate::FALLBACK . "'" .
" AND fastPanel\\Content\\Models\\Page\\Locale.page_id = fastPanel\\Content\\Models\\Page.id"
]
]
);
How to pass the value of the current model?