From: Fabian Streitel Date: 2009-08-11T15:14:17+09:00 Subject: Re: Destroying related objects doubt ... basic oop question --00504502d5cf9fc9fe0470d79cfe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > ex.: let's say we have objects House and Rooms, the relationship between > them is composition, so House is responsible for creating new Rooms. If > I destroy the instance of House, all instances of Rooms will be > destroyed as well, but it doesn't mean I have to 'delete' them from the > database, right? ... sounds like a silly question, but ... So what's your question? You're the city planning departement/programmer. If you call House.destroy or whatever your database API might be, it'll vanish from the db, if not, well, then not... Greetz --00504502d5cf9fc9fe0470d79cfe--