Inject your address repo in your controller:

  /**
     * addressRepository
     *
     * @var \Vendor\Extkey\Domain\Repository\addressRepository
     * @inject
     */
    protected $addressRepository;

and use it

  public function listAction() {
    $this->view->assign('lands', $this->landRepository->findAll() );
    $this->view->assign('addressses', $this->addressRepository->findAll()) ;

   }
Advertisements