[CDBI] question about set_sql and iterators
pharkins at gmail.com
Wed Nov 18 16:48:59 GMT 2009
On Wed, Nov 18, 2009 at 11:34 AM, Edward J. Sabol
<Edward.J.Sabol at nasa.gov> wrote:
> I don't think you've really understood how object-relational mappers work.
> You defined the SQL using A->set_sql() and then used A->search_*().
> Therefore, you are going to get objects of class A.
As Ed says, there's no support in Class::DBI for fetching multiple
object classes with one query. If you really need that, you should be
looking at Rose::DB::Object or DBIx::Class.
More information about the ClassDBI