update-objects-joins ignores :target-slot

Aleksandar Bakic <a_bakic-/[email protected]> Fri, 14 Oct 2005 07:20:49 -0700 (PDT)
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Hi,

I have a view class X with a join slot as below:

(zs :db-kind :join
    :db-info (:join-class y
				:home-key xk
				:foreign-key yk
				:target-slot z
				:set t))

and the y class has its slot z as below:

(z :db-kind :join
   :db-info (:join-class z
			       :home-key yk2
			       :foreign-key zk
			       :retrieval :immediate))

When using (select 'x), the zs slot of a returned instance of x is filled with
a list of (<instance of z> <instance of y>) elements, which is what I expect.
However, if update-objects-joins is subsequently called on (list <the instance
of x>), the zs slot is updated so that it now contains a list of <instance of
y> (intermediate view class) elements. It appears as if u-o-j ignored the
:target-slot.

Am I doing something incorrectly?..

Thanks,
Alex


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com