/** * Override the ORM_Model::_BuildSQLFindWith() to work with SDB * * Uses the SDBStatment::$findWith static variable, which is not a very nice * way to do this. * * @param string $table * @param array|string $findWith * @return string * SQL Query */ protected static function _BuildSQLFindWith($table, $findWith) { SDBStatement::$findWith = (array) $findWith; $className = static::ClassName(); return "SELECT `{$className}`.* FROM `{$table}` AS `{$className}` "; }