Am 27.02.2010 um 17:23 schrieb Hans Dieter Pearcey: > Excerpts from Rolf Schaufelberger's message of Fri Feb 26 17:53:41 -0500 2010: >> is there a way to coerce an attribute with the help of other attributes >> passed >> to new ? > > No. Type constraints (and therefore coercions) deal with values in isolation, > not in the context of objects or anything else. > >> I my class a pass a DBIC schema object and a DBIC::RowObject to new. >> Now I would like to be able to just pass the id instead of the RowObject and >> define a coercion like > > People have talked about solving this before, but no one's done it. > > hdp.
well, I'm doing that now in BUILDARGS, Works well for me. Rolf