function setCollectionClass() { $this->Collection = Blogposts::getInstance(); }
function _update($data) { $tableName = Blogposts::getInstance()->tableName; $this->dropCache(); return parent::_update($data, $tableName); }