ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #5935

    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
  • #6145

    Jowo
    Participant

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

    #6150
    Ayushi Sangal
    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()

    #6156

    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)

You must be logged in to reply to this topic.