[eluser]OverZealous[/eluser] @cberk
DMZ always includes every column you select. This is different from DataMapper, where it only included columns that were on the database.
Just make sure you give it an alias!
Example:
Code:
$m->select('*')->select('COUNT(`join_listings_metros`.`metro_id`) as `num_listings`')->get();
echo $m->num_listings
--
@Everyone: DMZ 1.4 is nearing release. This ended up being a serious update, including performance improvements, lots of requested features, and some really exciting new extensions. I don't want to ruin the surprise, but if I can recover from coding all night long, I'm going to try to get a copy released soon (tonight or early tomorrow).