[Dbix-class] Literals in relationships

Christopher Heschong chris at wiw.org
Wed Dec 20 03:28:31 GMT 2006


Literals don't seem to work for relationships for me.  For instance:

my $foo = 'bar';
__PACKAGE__->has_many(
	'things',
	'MyApp::Schema::Thing',
	{
		'foreign.key' => 'self.id',
		'foreign.foo' => \$foo
	}
);

doesn't seem to work.  I'm probably missing something simple, as  
usual.  Any alternate ways of doing this?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2409 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20061219/23624cdd/smime.bin


More information about the Dbix-class mailing list