On 6/4/07, John Siracusa [EMAIL PROTECTED] wrote:
On 6/3/07 5:20 PM, I?ja Ketris wrote:
I wonder how the module decides about foreign keys over relationships.
If it's there's a real foreign key constraint in the database, the Loader
make a foreign key in the RDBO class.
How is this
If I do:
require My::Class
then it works. But it does not work if I do:
my $classname = 'My::Class'
require $classname
Most of my code uses $classname for all my Rose functions but I'd like to
only require if required (if you see what I mean). Is it not possible?
Sorry if this is a PERL q.
- Original Message
From: James Masters [EMAIL PROTECTED]
my $classname = 'My::Class'
require $classname
Please see perldoc -f require. It explains the problem you are having. You
can fix it with the following:
my $classname = 'My::Class';
eval require $classname;
if ( my
On 6/4/07, Iļja Ketris [EMAIL PROTECTED] wrote:
On 6/4/07, John Siracusa [EMAIL PROTECTED] wrote:
If it's there's a real foreign key constraint in the database, the Loader
make a foreign key in the RDBO class.
How is this possible? SQLite doesn't support foreign keys
It does, sort of. There
is there a convenient way to get a setter for a relationship?
i know there is
column_accessor_value_pairs
column_mutator_value_pairs
in Helpers
i'm wondering what the best way to stuff an object in another is
i need to do something like this:
$a= a-new();
$b=
On 6/4/07, Jonathan Vanasco [EMAIL PROTECTED] wrote:
is there a convenient way to get a setter for a relationship?
Yes, and it works the same way as for columns. Like columns,
relationships and foreign keys have N named method types created on
their behalf. Examples of method type names are
On Jun 4, 2007, at 12:35 PM, John Siracusa wrote:
Yes, and it works the same way as for columns. Like columns,
relationships and foreign keys have N named method types created on
their behalf. Examples of method type names are get, get_set,
get_set_on_save, find, count, etc. There are
On 6/4/07, Jonathan Vanasco [EMAIL PROTECTED] wrote:
this might be where my confusion is -- mutator_method_name states
Returns the name of the method used to set the column value.
many items reference column -- but it seems like they work for
fkeys/relationships to. maybe all i needed was a
I migrated about 1/2 of my db to rose..
some fields are marked as 'integer'
other fields are marked as 'bigint'
other fields are not marked at all -- ( just an array of col names
from an import )
an issue arises when rose tries map any one of the above against