Skip Menu |

This queue is for tickets about the Catalyst-Manual CPAN distribution.

Report information
The Basics
Id: 100597
Status: resolved
Priority: 0/
Queue: Catalyst-Manual

People
Owner: Nobody in particular
Requestors: alfonso.pinto [...] gmail.com
jlanawalt [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: DBIx::Class doesn't Automatically Handle the Datetime Columns
Date: Fri, 28 Nov 2014 20:00:09 +0100
To: bug-Catalyst-Manual [...] rt.cpan.org
From: Alfonso Pinto <alfonso.pinto [...] gmail.com>
In 04_BasicCRUD, section "Update DBIx::Class to Automatically Handle the Datetime Columns, after running again the helper with component=TimeStamp, DBIx::Class::TimeStamp is not automatically added to lib/MyApp/Schema/Result/Book.pm. This way, created and updated fields are not handled automatically. I had to add manually to lib/MyApp/Schema/Result/Book.pm the following line: __PACKAGE__->load_components("TimeStamp"); Then created and updated fields are handled automatically. I don't know if it's an error in the tutorial, a bug in DBIC Schema::Loader, a change... Regards, Alfonso
Subject: [100597] DBIx::Class doesn't Automatically Handle the Datetime Columns
Date: Fri, 5 Dec 2014 16:53:31 -0700
To: bug-Catalyst-Manual [...] rt.cpan.org
From: Jacob Anawalt <jlanawalt [...] gmail.com>
I'm having the same trouble as Alfonso reported in bug 100597. I thought it was odd that after running myapp_create.pl with component=TimeStamp, rgrep found no file with TimeStamp in it. I tried adding __PACKAGE__->load_components("TimeStamp"); at the bottom of lib/MyApp/Schema/Result/Book.pm, after the add_columns code from the tutorial and before 1;, but still my model ignores the extra columns: INSERT INTO book ( rating, title) VALUES ( ?, ? ): '1', 'some book' System info: CatalystTutorial VM on VirtualBox. perl 5.10.1 Linux catalyst 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011 i686 GNU/Linux Thanks, -- Jacob
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #100597] DBIx::Class doesn't Automatically Handle the Datetime Columns
Date: Sat, 13 Dec 2014 18:14:35 +0100
To: bug-Catalyst-Manual [...] rt.cpan.org
From: ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker)
"alfonso.pinto@gmail.com via RT" <bug-Catalyst-Manual@rt.cpan.org> writes: Show quoted text
> In 04_BasicCRUD, section "Update DBIx::Class to Automatically Handle > the Datetime Columns, after running again the helper with > component=TimeStamp, DBIx::Class::TimeStamp is not automatically > added to lib/MyApp/Schema/Result/Book.pm. This way, created and > updated fields are not handled automatically.
This is because the option is called "components", not "component". Show quoted text
> I had to add manually to lib/MyApp/Schema/Result/Book.pm the following line: > __PACKAGE__->load_components("TimeStamp"); > > Then created and updated fields are handled automatically. > > I don't know if it's an error in the tutorial, a bug in DBIC > Schema::Loader, a change...
It's a recently-introduced error in the tutorial, which I've now reverted. -- "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen
Show quoted text
> It's a recently-introduced error in the tutorial, which I've now > reverted.
My fault; I'm so sorry! Will be released in 5.9009 in just a few minutes.
Subject: Re: [rt.cpan.org #100597] DBIx::Class doesn't Automatically Handle the Datetime Columns
Date: Mon, 15 Dec 2014 10:35:15 -0700
To: bug-Catalyst-Manual [...] rt.cpan.org
From: Jacob Anawalt <jlanawalt [...] gmail.com>
That did the trick, thank you. On Sat, Dec 13, 2014 at 11:15 AM, Karen Etheridge via RT <bug-Catalyst-Manual@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100597 > > >
>> It's a recently-introduced error in the tutorial, which I've now >> reverted.
> > > My fault; I'm so sorry! > Will be released in 5.9009 in just a few minutes.