Closed clyce closed 10 years ago
There is already issue for transform fns not running for one-to-one relations: #188
The result of union could be data from several different entities/tables and therefore transform fns cannot be really applied on the result set. In order to do that, Korma would need to execute each subquery separately, run transform fns and combine the results.
This is was already fixed 0.3.0
R.T
As an entity defined below:
on the code below, some-fn is applied
but, when trying the code below, the some-ent doesn't transform through some-fn:
and when I define an entity has some relation with some-ent(e.g has-one)
as I query
the result of some-ent is not transformed.
I don't know why, but things goes like that.
looking forward to your reply, thanks~