私は soft-Deletable 拡張機能を使用していますが、1 つのことを除いてすべて正常に動作しています。
私が次のことをしているときは真です(疑似コード):
null == $fooRepository->findByCriteria('criteria to find deleted entity');
しかし、以下はfalseに等しい
null == $otherEntity->getDeletedFooEntity()
私がこれをするときのためにそこに
if ($otherEntity->getDeletedFooEntity() != null)
{
$var = $otherEntity->getDeletedFooEntity()->getAnyProperty();
}
サーバー 500 エラーが表示されます: エンティティが見つかりませんでした
nullを返すようにするにはどうすればよいですか?それとも私はそれを間違っていますか?
どうもありがとう