public function inferFetchType($type, $property)
{
$type = $this->esc($type, TRUE);
$field = $this->esc($property, TRUE) . '_id';
$keys = $this->getKeyMapForType($type);
foreach ($keys as $key) {
if ($key['from'] === $field) {
return $key['table'];
}
}
return NULL;
}