public function isScheduledForInsert($entity) { return isset($this->entityInsertions[spl_object_hash($entity)]); }