Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Don't ask to ask, just ask
 
PerlMonks  

Re: Catalyst FormFu Create Data in Related Table

by Anonymous Monk
on Sep 24, 2012 at 12:44 UTC ( #995365=note: print w/ replies, xml ) Need Help??


in reply to Catalyst FormFu Create Data in Related Table

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?

Hmm, you call model->update so maybe you should call model->create or something


Comment on Re: Catalyst FormFu Create Data in Related Table
Re^2: Catalyst FormFu Create Data in Related Table
by simpzoid (Novice) on Sep 24, 2012 at 13:06 UTC
    $form->model->create( {resultset => 'Author'});
    gives me the same problem as
    $form->model->update($author);
    i.e. no data created in the address table
        I am familiar with
        Catalyst::Manual::Tutorial::09_AdvancedCRUD::09_FormFu, http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/Final/Chapter09_FormFu/MyApp/
        but it doesn't create data in related tables.
        I know the data is not inserted because i am using:
        DBIC_TRACE=1 script/myapp_server.pl -r
        and I can see what queries are actually being issued
        I have also queried the database and there is nothing in the address table.
        $form->model->create( {resultset => 'Author'});
        gives me the same problem as
        $form->model->update($author);
        i.e. no data created in the address table

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-04-18 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls