-
☆ A M B ☆
- 2,475 Posts
Thanks Shaun. Is there an option that can control that behavior? My religious reverence for the database is a bit spooked by this database agnostic stuff that creates tables on the fly... it takes some getting used to I suppose.
-
☆ A M B ☆
- 2,475 Posts
It is already created. My dev process is typically design and build the database, then access it. That’s why I was surprised when database tables were getting created when I thought I was just accessing them.
-
☆ A M B ☆
- 872 Posts
getCollection actually access the database.
You can maybe control it by instanciating a newQuery object before using getCollection to check if the container exist before accessing the db.
I have not tested it and i suspect newQuery to actually create the table also.
-
☆ A M B ☆
- 2,475 Posts
Nice. +1 for that feature. On-the-fly table creation might spook some devs, so that’d be a handy option. I’d even lean towards having the auto-table-creation behavior disabled by default just to avoid the mess of having people’s heads explode.