Looked at Doctrine and it indeed does the same thing as you would do. I also like the idea (didn't think of it...). I'll try to implement it today and else sunday :)