public function GetManyToOne($parent, $keyname)
	{
		// get the keymap for this child relationship
		$km = $this->GetKeyMap(get_class($parent), $keyname);

		// we need the value of the foreign key.  (ex. to get all orders for a customer, we need Customer.Id)
		// we also need to know the class of the object we're retrieving because if it's cached, we need to
		// make sure the model file is loaded
		$objectclass = $km->ForeignObject;
		$parent_prop = $km->KeyProperty;
		$key_value = $parent->$parent_prop;

		// get this object  Get uses caching so we don't need to bother
		$obj = $this->Get($km->ForeignObject,$key_value);

		return $obj;

	}