[Dbix-class] delaying relationship loading
Vsevolod (Simon) Ilyushchenko
simonf at cshl.edu
Sat Nov 19 16:23:42 CET 2005
Paul,
Thanks for bringing this up - this is a very serious problem, I've
already been bitten by it a few times.
Isn't it possible to propagate the compilation error up the chain so
that it's displayed to the user? Is it something that should be
addressed in Catalyst?
Simon
Paul Makepeace wrote on 11/19/2005 06:09 AM:
> Somewhat in the vein of initialize() but not directly addressing it:
> One of the issues I'm seeing over and over is failures of class loading
> going unnoticed due to their being hidden during the relationship
> loading. Let's say A rel B, B is loaded in an eval "require B" during
> A's compilation phase. If this fails e.g. a syntax error in B it's
> dropped which makes debugging more difficult. This situation is quite
> severe when relationships span most or all of the schema; a lot of work
> is being done in BEGIN.
--
Simon (Vsevolod ILyushchenko) simonf at cshl.edu
http://www.simonf.com
"Think like a man of action, act like a man of thought."
Henri Bergson
More information about the Dbix-class
mailing list