<p>The only time this little patch fails is if the alias.column_name is equal to schema.table_name.  Now that is a very ugly scenario that should be avoided simply for the sake of clarity, but I see your point that it potentially could come up.  </p>

<p>The path to reproduce the problem is this:</p>

<p>my $rs = $schema-&gt;resultset('Artist')-&gt;find( 1 );<br>
 eval { $rs-&gt;cds_unordered-&gt;delete };</p>

<p>In the CD.pm I changed the table from 'cd' to 'schema_qualified.cd'.</p>

<p>The SQL that will be generated will be 'DELETE FROM cd WHERE ( artist = ? )' even though you have specified schema_qualified.cd as the table name in the result class.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/dbsrgits/dbix-class/pull/18#issuecomment-14591904'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4W3BWTo7EIi_7vx28Xzl_gG6ChOv85OqWofxoMwLyWuSlqgzOh1YfrZQLjQmVh4H.gif' height='1' width='1'></p>