Hi Sergiy,
I had never seen a join between a table and an anonymous select, I didn’t even know this was possible.
Unfortunately, DBIx ::DataModel cannot support this, because there is no way to construct a class for blessing the resulting rows. So I’m afraid you have to stick with your second solution. Another possibility would be to use a virtual column and/or a custom function like « count_Bar_occurrences(f.id) » ; I’ve done such things in Oracle but this is not standard SQL so you have to check if such a thing is possible in your DBMS.
Cheers, Laurent Dami
De : dbix-da...@googlegroups.com [mailto:dbix-da...@googlegroups.com]
De la part de Sergiy Zuban
Envoyé : mercredi 21 mai 2014 23:40
À : dbix-da...@googlegroups.com
Objet : [dbix-datamodel] join subquery
--
---
You received this message because you are subscribed to the Google Groups "dbix-datamodel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dbix-datamode...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--