OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Delete entity/update database

This topic contains 3 replies, has 2 voices, and was last updated by  Jowo 9 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33450

    Jowo
    Participant

    Is there ANY way, command line, manually or any other way to HARD delete an entire entity so I can re-create it?

    Right now I can “delete” it in GUI, but it is still there. I want to remove it from Doctrine AND the database completely without having to re-install entire Oro just to delete an entity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #33451

    Jowo
    Participant

    No possible way to do this without re-installing the entire application?

    #33452

    Ayushi Sangal
    Participant

    Hello Jowo You can try this to delete entity form database.write following code in action nd call that action

    $em = $this->getDoctrine()->getManager();
    $sql = ‘DROP TABLE logoReference;’;
    $connection = $em->getConnection();
    $stmt = $connection->prepare($sql);
    $stmt->execute();
    $stmt->closeCursor()

    #33453

    Jowo
    Participant

    That is just drop table? I can do that in phpmyadmin too.

    Does it delete the entity from doctrine?

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top