[CDBI] X is not a column of Y

Arshavir Grigorian grigorian at gmail.com
Thu Oct 4 01:08:25 BST 2007


Hi,

I am getting the error posted below when I try to delete from a table
that has_many() records in another table. All my classes are defined
in separate files and Communication is being loaded before Task where
Communication has_a(Task) and T has_many(Communications).

Thanks in advance for any suggestions on how to fix this.



[Wed Oct 03 22:29:36 2007] [error] [client IP] task is not a column of
App::Communication at
/usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.\pm line 115\n at
/home/user/sites/app/trunk/www/conf/startup.pl line
87\n\tmain::__ANON__('task is not a column of App::Communication at
/usr/lo\
cal/sh...') called at /usr/share/perl/5.8/Carp.pm line
102\n\tCarp::croak('task is not a column of App::Communication')
called at /usr/local/sha\
re/perl/5.8.7/Class/DBI.pm line
169\n\tClass::DBI::_croak('App::Communication', 'task is not a column
of App::Communication') called at /usr/loc\
al/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
115\n\tClass::DBI::Search::Basic::_search_for('Class::DBI::Search::Basic=HASH(0x90b97ac)')
ca\
lled at /usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
125\n\tClass::DBI::Search::Basic::_qual_bind('Class::DBI::Search::Basic=HASH(\
0x90b97ac)') called at
/usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
144\n\tClass::DBI::Search::Basic::_qual('Class::DBI::Search::B\
asic=HASH(0x90b97ac)') called at
/usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
154\n\tClass::DBI::Search::Basic::fragment('Class::D\
BI::Search::Basic=HASH(0x90b97ac)') called at
/usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
163\n\tClass::DBI::Search::Basic::sql('\
Class::DBI::Search::Basic=HASH(0x90b97ac)') called at
/usr/local/share/perl/5.8.7/Class/DBI/Search/Basic.pm line
169\n\tClass::DBI::Search::Basi\
c::run_search('Class::DBI::Search::Basic=HASH(0x90b97ac)') called at
/usr/local/share/perl/5.8.7/Class/DBI.pm line
1094\n\tClass::DBI::__ANON__(\
'App::Communication', 'task', 42) called at
/usr/local/share/perl/5.8.7/Class/DBI/Cascade/None.pm line
68\n\tClass::DBI::Cascade::None::foreign_\
for('Class::DBI::Cascade::Delete=HASH(0x839abd4)',
'App::Task=HASH(0x90b8d8c)') called at
/usr/local/share/perl/5.8.7/Class/DBI/Cascade/Delete.p\
m line 21\n\tClass::DBI::Cascade::Delete::cascade('Class::DBI::Cascade::Delete=HASH(0x839abd4)',
'App::Task=HASH(0x90b8d8c)') called at /usr/loc\
al/share/perl/5.8.7/Class/DBI/Relationship/HasMany.pm line
75\n\tClass::DBI::Relationship::HasMany::__ANON__('App::Task=HASH(0x90b8d8c)')
called\
  at /usr/local/share/perl/5.8.7/Class/Trigger.pm line
68\n\tClass::Trigger::call_trigger('App::Task=HASH(0x90b8d8c)',
'before_delete') called at\
  /usr/local/share/perl/5.8.7/Class/DBI.pm line
735\n\tClass::DBI::delete('App::Task=HASH(0x90b8d8c)') called at
/home/user/sites/app/trunk/www/l\
ib/perl/App/Manager.pm line
755\n\tApp::Manager::delete_lead('Apache2::RequestRec=SCALAR(0x8a93a1c)')
called at /home/user/sites/app/trunk/www/l\
ib/perl/App/Manager.pm line
32\n\tApp::Manager::handler('Apache2::RequestRec=SCALAR(0x8a93a1c)')
called at /home/user/sites/app/trunk/www/lib/pe\
rl/App/Application.pm line
127\n\tApp::Application::handler('Apache2::RequestRec=SCALAR(0x8a93a1c)')
called at -e line 0\n\teval {...} called at\
  -e line 0\n, referer: http://www.app.com/tasks/update



More information about the ClassDBI mailing list