protected function getForeignKeyForTypeProperty($type, $property)
{
$property = $this->esc($property, TRUE);
try {
$map = $this->getKeyMapForType($type);
} catch (SQLException $e) {
return NULL;
}
foreach ($map as $key) {
if ($key['from'] === $property) {
return $key;
}
}
return NULL;
}