in reply to Re^3: FormFu, DBIC, and multiple tables
in thread FormFu, DBIC, and multiple tables
remove delete_if_empty 1, and nothing gets deleted if the input is blank. Leave it there, and the row it belongs to (along with every row related to it) gets deleted. No perl code required besides telling my catalyst controller to use a formfu config for the action's form. This is clearly intended behavior, and shouldn't require code to explain. What does require an explanation is how do I delete only the row it belongs to, and if this requires setting a parameter in the config to point the element to a different ResultSet how do I do this?<model_config> resultset Sets delete_if_empty 1 </model_config>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: FormFu, DBIC, and multiple tables
by Anonymous Monk on Mar 31, 2010 at 06:30 UTC |