[Dbix-class] No such column: me. error
Matt S Trout
dbix-class at trout.me.uk
Tue Nov 22 19:34:50 CET 2005
On Tue, Nov 22, 2005 at 01:20:21PM -0500, Christopher H. Laco wrote:
> Matt S Trout wrote:
> > On Tue, Nov 22, 2005 at 12:23:48PM -0500, Christopher H. Laco wrote:
> >> I'm stumped on this. I'm working through the Handel test suite and I'm
> >> getting this error on a write activity:
> >>
> >> Where is the "me" in me.sku coming from?
> >
> > Storage adds it - if you export DBIX_CLASS_STORAGE_DBI_DEBUG=1 (or set
> > $class->storage->debug(1) ) you'll be able to see the full SQL statement.
> > Storage always aliases the current able to 'me' currently in order to
> > distinguish it from joins and prefetches.
> >
>
> Fixed. Stupid user trick [as usual].... __PACKAGE__->add_columns instead
> of $self->add_columns in my DBI class... eeek...can't wait to factor
> that out...
>
> I think the only thing left is deep recursion issues since I have my own
> new() subs...once I NEXTalize that, I think I'm in the clear.
Yeah, please bear in mind that in the C3 branch this will ideally want to
be $self->next::method(...) rather than $self->NEXT::new(...)
--
Matt S Trout Specialists in Perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list