protected function detectAssignment(Registry $title)
    {
        return Models\Assignment::getInstance([
            'bank' => $this->bank->id,
            'agency' => $title->assignment_agency,
            'account' => $title->assignment_account,
            'cnab' => (string) $this->cnab,
        ]);
    }
protected function detectAssignment(Registry $title)
    {
        return Models\Assignment::getInstance([
            'bank' => $this->bank->id,
            'agency' => $title->assignment_agency,
            'account' => $title->assignment_account,
            'cnab' => (string) $this->cnab,
        ]);
    }
protected function detectAssignment ( Registry $ title ) { return Models \ Assignment :: getInstance ( [ 'bank' => $ this -> bank -> id , 'agency' => $ title -> assignment_agency , 'account' => $ title -> assignment_account , 'cnab' => ( string ) $ this -> cnab , ] ) ; }
Detects an Assignment in the database

@param Registry $title Registry with title's data

@return Models\Assignment On success
@return null              On failure
Detects an Assignment in the database