Hello!
I have a small quality of life/code question and it's regarding propel, I tried doing some specific research but couldn't find anything good. We have a lot of imports/data updating operations happening and most of them specific so we end up writing a lot of propel code, I was wondering if there is a way to avoid null checks when trying to retrieve information from db.
ex:
$foundExistingProductI18n = ProductI18nQuery::create()->filterById($foundProduct)->findOneByLocale($locale);
if ($foundExistingProductI18n != null){
$foundExistingProductI18n=$foundExistingProductI18n->getTitle();
}
This is what we do now, I would like to know if there is a propel flag/operation that can be done so that an error isn't thrown and something like this would work without an error.
$foundExistingProductI18n = ProductI18nQuery::create()->filterById($foundProduct)->findOneByLocale($locale)->getTitle();
Thank You!