Please to rename $product as $entity or something else. We are in AbstractORMTransformer not ProductORMTransformer.