Skip to content

Doctrine integration #1078

Open
Open
@MyZik

Description

@MyZik

❓ Support Question / Feature Request

Hello!

I would use the Doctrine ORM for our bot package, it would make sense to me, because we can use DB easier. In the end I can create the PR, if my idea sounds okay :)

To do that, I have to solve a problem...

I'm trying to convert the SQL-file to Doctrine Entities. https://github.com/php-telegram-bot/core/blob/master/structure.sql

I need to use command in console:

./vendor/bin/doctrine orm:convert-mapping php src/ --from-database --force

But I've got an error...

Property "chat" in "EditedMessage" was already declared, but it must be declared only once

How can I fix it?

Thank you a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions