public static function getByGroupAndKeyId($groupId, $keyId)
{
$relation = new KeyGroupRelation\Listing();
$relation->setCondition("groupId = " . $relation->quote($groupId) . " and keyId = " . $relation->quote($keyId));
$relation->setLimit(1);
$relation = $relation->load();
if ($relation) {
return $relation[0];
}
}