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 val
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.
Hi,
is there a way to coerce an attribute with the help of other attributes passed
to new ?
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
DbObject coerce => from Int,