Hi Carl!
I'm sorry I missed that. Try to change that line to
$dbic->discard_changes unless($dbic->$rel);
All tests pass.
I'm not sure why the PK is being lost in the process.
I had to set the relationship to some value because
otherwise DBIC would complain that the relationship
could not be re
On 20 February 2010 17:10, Moritz Onken wrote:
> Hi,
>
> this is a patch to allow a form to create a row in a belongs_to related
> table. This was not working till now. The Band.pm class had actually a wrong
> relationship set which made it look like it would work. I also added a test
> to conf
Done.
On Sun, 21 Feb 2010 21:09:31 +, Carl Franks
wrote:
> On 20 February 2010 17:10, Moritz Onken wrote:
>> Hi,
>>
>> this is a patch to allow a form to create a row in a belongs_to related
>> table. This was not working till now. The Band.pm class had actually a
>> wrong relationship set w
On 20 February 2010 17:10, Moritz Onken wrote:
> Hi,
>
> this is a patch to allow a form to create a row in a belongs_to related
> table. This was not working till now. The Band.pm class had actually a wrong
> relationship set which made it look like it would work. I also added a test
> to conf
Hi,
this is a patch to allow a form to create a row in a belongs_to related table.
This was not working till now. The Band.pm class had actually a wrong
relationship set which made it look like it would work. I also added a test to
confirm my findings.
I can submit that patch to the repo if th