I want to force Str to a DBIx :: Class :: Row object for an attribute in my Moose class. To do this, I need to do a DBIC lookup to find the string. I want to push an error on the ArrayRef attribute if the search failed.
I am currently passing a schema as an attribute to my class.
Forced, it seems that I cannot access the object, so I can not click on the arrayref attribute of the error or use the schema object to perform my search.
An alternative that I tried was to use "around" to find and set the attribute during installation, but this, of course, is not called when the attribute value is passed through the constructor.
Is this possible, or does someone have an alternative implementation to do what I want to achieve?
source share