vanstyn / RapidApp

Turnkey ajaxy webapps
http://rapi.io
Other
48 stars 15 forks source link

_resolve_condition() warnings starting in DBIC 0.08280 #68

Closed vanstyn closed 10 years ago

vanstyn commented 10 years ago

Starting with the 0.08280 release of DBIx::Class, the following warnings started being produced from calls to the private _resolve_condition() method:

DBIx::Class::ResultSource::_resolve_relationship_condition(): Requesting resolution 
on non-existent relationship 'user_alias' on source 'Process': fix your code *soon*, as 
it will break with the next major version 
  at /root/git/github/vanstyn/RapidApp/lib/RapidApp/TableSpec/Role/DBIC.pm line 1163

@ribasushi investigated and posted this commit comment:

https://github.com/vanstyn/RapidApp/commit/4381f593afd101c78fe9b49967ee0603a7bf0e95#commitcomment-8320008

Further, on IRC:

<ribasushi> also fwiw the code you have there is in essence a direct duplication of 
            DBIC::Helper::ResultSet::Correlated...something
<ribasushi> (the one that warns)
<ribasushi> anyway - the short answer (realizing I didn't explicitly provide it) is to 
            call: _resolve_relationship ($valid_relname, 'me', $rel_alias )