public function getManufacturerRecord($customer)
    {
        $mm = TableRegistry::getTableLocator()->get('Manufacturers');
        $manufacturer = $mm->find('all', [
            'conditions' => [
                'AddressManufacturers.email' => $customer->email
            ],
            'contain' => [
                'AddressManufacturers'
            ]
        ])->first();
        return $manufacturer;
    }
public function getManufacturerRecord($customer)
    {
        $mm = TableRegistry::getTableLocator()->get('Manufacturers');
        $manufacturer = $mm->find('all', [
            'conditions' => [
                'AddressManufacturers.email' => $customer->email
            ],
            'contain' => [
                'AddressManufacturers'
            ]
        ])->first();
        return $manufacturer;
    }
public function getManufacturerRecord ( $ customer ) { $ mm = TableRegistry :: getTableLocator ( ) -> get ( 'Manufacturers' ) ; $ manufacturer = $ mm -> find ( 'all' , [ 'conditions' => [ 'AddressManufacturers.email' => $ customer -> email ] , 'contain' => [ 'AddressManufacturers' ] ] ) -> first ( ) ; return $ manufacturer ; }
bindings with email as foreign key was tricky...

@param array $customer
@return boolean
bindings with email as foreign key was tricky ...