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);

```
Try to do this one

```
//employer to person mappings
HasMany(x=> x.Employees)
    .Inverse() 
    .Cascade.AllDeleteOrphan();

```

I didn't check it, but I hope it could help you.