<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 4:32 PM, Dave Howorth <span dir="ltr">&lt;<a href="mailto:dhoworth@mrc-lmb.cam.ac.uk" target="_blank">dhoworth@mrc-lmb.cam.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I have various applications that use DBIx::Class. I just moved one of them, which has been running OK for quite a while, to a new machine and that meant it got a new environment, including an updated DBIx::Class. It no longer runs, and it would help me to try to understand what is broken in my own code if I could understand how the DBIC code works and why it was changed. If anybody could give me any pointers, I&#39;d be grateful.<br>
<br>
My code is dying with the error message:<br>
<br>
DBIx::Class::Row::store_column(): No such column &#39;_type&#39; on TDB::Schema::Result::Node<br>
<br>
This appears to be caused by a change in the code in DBIx::Class::Row in store_column() in particular where<br>
<br>
  $self-&gt;throw_exception( &quot;No such column &#39;${column}&#39;&quot; )<br>
    unless exists $self-&gt;{_column_data}{$column} || $self-&gt;has_column($column);<br>
<br>
has been replaced by<br>
<br>
  $self-&gt;throw_exception( &quot;No such column &#39;${column}&#39; on &quot; . ref $self )<br>
    unless exists $self-&gt;{_column_data}{$column} || $self-&gt;result_source-&gt;has_column($column);<br>
<br>
If I put back the original code there, my application appears to work.<br>
<br>
Now my TDB::Schema::Result::Node contains some gnarly code that it will take me some time to regain familiarity with, and I think it would help me if I understood why that change had been made in DBIx::Class::Row so I might get some idea of what I need to change in my own code.<br>
<br>
If anybody can point me to the change or provide any explanation, I&#39;d appreciate it.<br></blockquote><div><br></div><div><a href="https://github.com/dbsrgits/dbix-class/commit/4006691d207a6c257012c4b9a07d674b211349b0">https://github.com/dbsrgits/dbix-class/commit/4006691d207a6c257012c4b9a07d674b211349b0</a><br></div><div><br></div><div>Without knowing what I&#39;m talking about, this would seem to only matter if you do something funky like dynamically re-blessing result objects...</div><div><br></div><div>Does TDB::Schema::Result::Node and the underlying table actually have a _type column?</div><div><br></div><div>/L</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Cheers, Dave<br>
<br>
PS The old version says it is  &#39;0.08200&#39; and the new is &#39;0.082820&#39;.<br>
<br>
_______________________________________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a><br>
</blockquote></div><br></div></div>