protected function _getPropertyMap($source, $associations)
    {
        $map = [];
        $container = $source->associations();
        foreach ($associations as $assoc) {
            $map[$assoc] = $container->get($assoc)->getProperty();
        }

        return $map;
    }
protected function _getPropertyMap($source, $associations)
    {
        $map = [];
        $container = $source->associations();
        foreach ($associations as $assoc) {
            $map[$assoc] = $container->get($assoc)->getProperty();
        }

        return $map;
    }
protected function _getPropertyMap ( $ source , $ associations ) { $ map = [ ] ; $ container = $ source -> associations ( ) ; foreach ( $ associations as $ assoc ) { $ map [ $ assoc ] = $ container -> get ( $ assoc ) -> getProperty ( ) ; } return $ map ; }
Returns a map of property names where the association results should be injected
in the top level entities.

@param \Cake\ORM\Table $source The table having the top level associations
@param string[] $associations The name of the top level associations
@return array
Returns a map of property names where the association results should be injected in the top level entities .