From: <[email protected]>
On Sun, Mar 15, 2009 at 1:06 PM, Octavian Râsnita <[email protected]>
wrote:
From: <[email protected]>
Please let me know if anyone has problems with this in the current
version of the tutorial (v5.7020):
http://search.cpan.org/perldoc?Catalyst::Manual::Tutorial
The default behavior of Catalyst::Model::DBIC::Schema changed
recently. To avoid incompatibilities, the tutorial now has you
manually upgrade to at least v0.23 in "A Static Database Model With
DBIx::Class" of MoreCatalystBasics.pod and go straight to
load_namespaces (vs. first doing load_classes and migrating over). I
believe everything should be working as long as people make sure they
have the right version of Catalyst::Model::DBIC::Schema, but let me
know if people run into issues.
Thanks!
Kennedy
I've seen that if I remove the old Schema.pm and Schema directory and I
use
the helper to re-create them, it works fine, or at least it creates the
files, because I haven't tested them yet.
But if I let them in their place and I use the helper to re-generate them,
no new file is created. Is this the way it should be?
Octavian
Hi Octavian,
Thanks for your note. When you say "no new file is created" if you
don't delete them, what if you make a change to the database (as is
done in "EXPLORING THE POWER OF DBIC" of BasicCRUD.pod) and rerun it?
It should then reflect the DB changes to the stuff above the "DO NOT
MODIFY" line, but preserve everything below that line.
Let me know if you are seeing a different behavior.
Thanks!
Kennedy
Yes it works that way, but it doesn't create the Result directory and it
doesn't store the result classes in it. It just updates the old classes.
But if I delete the old classes, or at least the old schema class, it
creates the "Result" directory and put them in it, and it also creates the
new schema class which uses load_namespaces().
But in this second case, it doesn't remember what was after "do not modify
this or anything above" in the result classes, and the update should be done
manually.
And I don't know if this is the expected behaviour or there is a bug or I am
doing something wrong.
Octavian
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/