Skip to content

Commit

Permalink
Merge pull request #107 from contao-estatemanager/develop
Browse files Browse the repository at this point in the history
Return value changed to Model of method findPublishedByObjektnrIntern…
  • Loading branch information
eki89 authored Jun 10, 2020
2 parents 0f4ebd2 + a8202b2 commit 5b21924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/models/RealEstateModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ class RealEstateModel extends Model
* @param integer $intOffset An optional offset
* @param array $arrOptions An optional options array
*
* @return \Model\Collection|RealEstateModel[]|RealEstateModel|null A collection of models or null if there are no real estates
* @return Model\Collection|RealEstateModel[]|RealEstateModel|null A collection of models or null if there are no real estates
*/
public static function findPublishedBy($intLimit=0, $intOffset=0, array $arrOptions=array())
{
Expand Down Expand Up @@ -1557,6 +1557,6 @@ public static function findPublishedByObjektnrIntern($varValue, array $arrOption

$arrOptions['limit'] = 1;

return static::findBy($arrColumns, $varValue, $arrOptions);
return static::findOneBy($arrColumns, $varValue, $arrOptions);
}
}

0 comments on commit 5b21924

Please sign in to comment.