good chemistry is complicated,
and a little bit messy -LW
Catalyst FormFu Create Data in Related Tableby simpzoid (Novice)
|on Sep 24, 2012 at 11:56 UTC||Need Help??|
simpzoid has asked for the
wisdom of the Perl Monks concerning the following question:
Dear All, I have been the following 2 methods in a Catalyst controller:
The methods give the following results:
SELECT me.id, me.name FROM author me WHERE ( me.id = ? ): '1'
UPDATE author SET name = ? WHERE ( id = ? ): 'scott', '1'
SELECT me.id, me.address, me.author_id FROM address me WHERE ( ( me.id = ? AND me.author_id = ? ) ): '1', '1'
UPDATE address SET address = ? WHERE ( id = ? ): '13 thriplee road', '1'
INSERT INTO author ( name) VALUES ( ? ): 'Marge'
...and finally the question. Why does the create method not do an insert into the address table and what do I have have to do to persuade the create method to do said insert?
In case it helps the object and based methods are: