<div dir="ltr">Hi, I'm trying to write some code using our Koha::Schema::Result::* classes.<div><br></div><div>The sample i picked was the most unfortunate: I want to pull data from Deletedbiblio and Deletedbibliotems which don't have a relation defined. The relevant bits of the code look like:</div>

<div><br></div><div><div>    my $resultset = $schema->resultset( 'Deletedbiblio' )->search(</div><div>      {</div><div>        Deletedbiblio.biblionumber => $biblionumber</div><div>      },</div><div>      {</div>

<div>        join     => [ qw/ Deletedbiblioitems Itemtypes / ]</div><div>      }</div><div>    );</div></div><div><div><br></div><div>it dies because "<span style="color:rgb(0,0,0)">No such relationship Deletedbiblioitem on Deletedbiblio". How shuold we cope with that situation? (I understand introducing a relationship would mean a lot of trouble as the tables are intended for deleted / not hard-linked data).</span></div>

<div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Any ideas? Plain SQL?</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Regards</span></div>

<div><span style="color:rgb(0,0,0)">To+</span></div><div><br></div><div>P.S. Happy independence day for those that apply :-D</div><div><br></div>-- <br><div dir="ltr"><div>Tomás Cohen Arazi</div><div>Prosecretaría de Informática</div>

<div>Universidad Nacional de Córdoba</div><div>✆ +54 351 5353750 ext 13168</div><div>GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F</div></div>
</div></div>