public function getPhotoById(int $photoId) : PartnersPhotoModel
{
$criteria = new Criteria();
$criteria->_and('id = :photoId', [':photoId' => $photoId]);
return $this->findOne($criteria);
}
public function getPhotoById(int $photoId) : ?PartnersPhotoModel