Question: I have two URL's which contain the parameter "tour\_date" which I am trying to read out in PHP. Running `$_REQUEST["tour_date"]` for the first URL:

.php?tour\_id=336&tour\_date=11/06/2010

returns the value of: 11/06/2010

While the second URL:

.php?tour\_id=336&tour\_date=11/06/2010

returns nothing. I've run the empty() method to test, and it indeed is not finding it. Any ideas on why this would happen? Thanks for your help!

Answer: 
try clearing all CurrentEmployer's first then deleting the Employee

```
public class Employer 
{
    public virtual Guid Id {get;set;}
    public virtual string Name {get;set}
    public virtual IList<Person> Employees {get;set;}

    public void UnemployAll()
    {
        foreach(var employee in Employees)
        {
            employee.CurrentEmployer = null;
        }
        Employees = new List<Person>(); // clear it
    }
}

```

then try the following (I think the employees (person) should all get updated), I don't know if this will work off the top of my head, but it may get you started in the right direction.

```
oldEmployer.UnemployAll();
_session.Delete(oldEmplorer);

```
Do you have code scattered all around that deletes employers? I think normally you would have only one place in the code really that deletes employers, so there wouldn't really be a need to have nhibernate do this work for you; Just have a statement there that updates all referencing employees.

If you actually do have these deletes scattered all about, then you could create an Interceptor or Event Listener that watched for deletes to the table and have the interceptor/Listener update referencing employees.