Skip to content

An error occured while communicating to the server. JTable + ORM #2265

Open

Description

@belenmolina1

Hello! I have the following situation:
My idea is to be able to take data from a table, display it in the front end with JTable.
What I need is to be able to make the connection using ORM, that is Doctrine.
When I make the query to the table, it brings me the data, it prints them JSON, but it does not insert them in the table and it emits the message "Error
An error occured while communicating to the server."

Could you give me a hand?

Controller

image

JTable
image

Model

image

Front
image

Activity

  1. sheryever commented on Jan 1, 2022

    @sheryever
    Contributor

    Correct your code in function tableform() function

    Correct
    $jTableResult['Records'] = $contact->findAll();

    You don't need
    $data['contact'] = $contact->findAll();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions