any idea why this would happen...
i load all records through the manager into an array ref and i get the results below... then i try to load one of these records based on their ID and it tells me i can't... even though the manager found it alright... any clue?
output below from data dumper
$VAR1 = [
bless( {
'__xrdbopriv_in_db' => 1,
'__xrdbopriv_db_is_private' => 0,
'db' => bless( {
'connect_options_for' => {
'cantella' => {
'pk' => 1
}
},
'domain' => 'cantella',
'error' => undef,
'id' => 'cantellapk',
'_dbh_is_private' => 0,
'database_version' => undef,
'password_closure' => sub { "DUMMY" },
'_dbh_refcount' => 1,
'host' => '10.0.2.10',
'username' => 'wroditi',
'database' => 'pk',
'connect_options' => {
'Warn' => 0,
'AutoCommit' => 1,
'RaiseError' => 1,
'ChopBlanks' => 1,
'PrintError' => 1
},
'_origin_class' => 'Cantella::DB',
'dsn' => 'dbi:mysql:database=pk;host=
10.0.2.10',
'dbh' => bless( {}, 'DBI::db' ),
'type' => 'pk',
'driver' => 'mysql'
}, 'Cantella::DB::__RoseDBPrivate__::Rose::DB::MySQL' ),
'name' => 'u4d',
'description' => undef,
'nicename' => 'U4 Date',
'type_id' => '1',
'dbh' => undef,
'id' => '153'
}, 'Cantella::PaperKiller::DB::UserProp' ),
bless( {
'__xrdbopriv_in_db' => 1,
'__xrdbopriv_db_is_private' => 0,
'db' => $VAR1->[0]{'db'},
'name' => 'shell',
'description' => undef,
'nicename' => 'Favorite Shell',
'type_id' => '2',
'dbh' => undef,
'id' => '154'
}, 'Cantella::PaperKiller::DB::UserProp' ),
<snip snip>
];
#print Dumper $up
$VAR1 = bless( {
'id' => '153'
}, 'Cantella::PaperKiller::DB::UserProp' );
# this is what happens when i try to load...
Uncaught exception from user code:
No such Cantella::PaperKiller::DB::UserProp where id = 153 at Cantella/PaperKiller/DB/UserPropValue.pm line 29
at /usr/local/lib/perl5/site_perl/5.8.7/Rose/DB/Object/Metadata.pm line 319
.........
- [RDBO] Fail on load on record retrieved by Manager Guillermo Roditi
- Re: [RDBO] Fail on load on record retrieved by Manag... John Siracusa
- [RDBO] Re: Fail on load on record retrieved by Manag... Guillermo Roditi
- Re: [RDBO] Re: Fail on load on record retrieved ... John Siracusa