Skip to content

Commit

Permalink
Bug fixing join entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kamshory committed Oct 20, 2024
1 parent 801036a commit 34485da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Database/PicoDatabasePersistence.php
Original file line number Diff line number Diff line change
Expand Up @@ -2891,14 +2891,14 @@ private function prepareJoinCache($classNameJoin)
*/
private function getJoinData($classNameJoin, $referenceColumName, $joinKeyValue)
{
$persist = new self(null, new $classNameJoin());
$className = $this->getRealClassName($classNameJoin);
$persist = new self(null, new $className());
$info = $persist->getTableInfo();
$noCache = isset($info) ? $info->getNoCache() : false;

// Check if caching is disabled or if the data is not already cached
if($noCache || !isset($this->joinCache[$classNameJoin]) || !isset($this->joinCache[$classNameJoin][$joinKeyValue]))
{
$className = $this->getRealClassName($classNameJoin);
{
$obj = new $className(null);

$dbEnt = $this->object->databaseEntity();
Expand Down

0 comments on commit 34485da

Please sign in to comment.