<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I've been coding in Perl for years, but I'm still pretty new to Catalyst, so please excuse the newbie question.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><span style="font-family:arial,sans-serif;font-size:13px">I'm putting together a Catalyst application which uses Calalyst::Controller::DBIC::</span><span style="font-family:arial,sans-serif;font-size:13px">API::REST to interface with the database.</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">So, in lib/MyApp/Controller/ there are a bunch of files of the form {Table}.pm, which each consists of basically a __PACKAGE__->config() call setting various things, including create_requires, create_allows and so on.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Simple question: Several of these tables require status etc. to be set heardwired in code, and several of the others have some business logic which needs to take place on e.g. creation.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">What's the canonical way to do this? I'm guessing it means defining a begin method, but I'd really like to know the "proper" way to do this. Can't see this anywhere in the docs (unless I'm looking in the wrong place), but it's such a common occurrence it *must* be a FAQ.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks in Advance.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Andy Holyer, Brighton, UK</div></div>