That was a bad example:
$slotRow = $slotTable->fetchRow(array("locationId = ?" => $locationRow->locationId, "timeId = ?" => $timeRow->timeId, "days = ?" => $days));
I'm using this for a data scrubber. I don't want to replicate data, so I need to make sure it's not already in there. For example, a slot may have the time and day fields filled, but this slot may not have a location. The location should be null since it doesn't have one. Well what if there is another slot with the same time and day, but actually has a location? I need to make sure I check whether that locationId is null.
Does that make sense? Do you think there is a better approach to this?