Infrastructure/BaseEntity/DatabaseTable/View/DatabaseTableViewChild.php
public function routeIndex(Request $request, Response $response, $args)
    {
        $this->tableName = $args[ROUTEARG_DATABASE_TABLE_NAME];
        $this->tableMapper = new TableMapper($this->tableName);
        parent::__construct($this->container, $this->tableMapper, ROUTEPREFIX_ROLES);

        return $this->indexView($response);
    }
public function routeIndex(Request $request, Response $response, $args)
    {
        $this->tableName = $args[ROUTEARG_DATABASE_TABLE_NAME];
        $this->tableMapper = new TableMapper($this->tableName);
        parent::__construct($this->container, $this->tableMapper, ROUTEPREFIX_ROLES);

        return $this->indexView($response);
    }
overrides in order to get objects and send to indexView