protected function getBooleanForDriver($boolean) { if (strstr($this->dsn, 'sqlite:') || strstr($this->dsn, 'mysql:')) { return $boolean ? 1 : 0; } // might have to be overriden for certain drivers. return $boolean; }