Re: [Dbix-class] Could not load Schema Class (Billing::Schema). DBIx::Class::ResultSource::add_relationship(): Malformed relationship condition value '': must be prefixed with 'self.'

2021-01-26 Thread Александр Поволоцкий
Yes, thanks! I guess this example is required to be in docs. -- Alex On 27.01.2021 2:06, Daniel Böhmer wrote: Hello Alex, the simple hashref-type defintion expects a pair of column names. I did the same thing using the coderef-type definition. For an example see

Re: [Dbix-class] Could not load Schema Class (Billing::Schema). DBIx::Class::ResultSource::add_relationship(): Malformed relationship condition value '': must be prefixed with 'self.'

2021-01-26 Thread Daniel Böhmer
Hello Alex, the simple hashref-type defintion expects a pair of column names. I did the same thing using the coderef-type definition. For an example see https://github.com/dboehmer/coocook/blob/c9b3503f3df44a6817c5402225913815849e4aaa/lib/Coocook/Schema/Result/Unit.pm#L38 Beware that with a