The main is to achieve 2 functions:
-
In the process of building a table, an entity can correspond to more than one table, for example, I create only one FeedArchive entity but can generate a series of tables such as feed_archive_201510 feed_archive_201511 ...
-
Can determine which table this entity corresponds to at run time
Before already tried propel Orm, but did not find a solution, hope in doctrine can have a good solution, in addition to recommend a better ORM library, at present only used eloquent, but eloquent rely on laravel, inconvenient to take out alone use.
Reply content:
The main is to achieve 2 functions:
-
In the process of building a table, an entity can correspond to more than one table, for example, I create only one FeedArchive entity but can generate a series of tables such as feed_archive_201510 feed_archive_201511 ...
-
Can determine which table this entity corresponds to at run time
Before already tried propel Orm, but did not find a solution, hope in doctrine can have a good solution, in addition to recommend a better ORM library, at present only used eloquent, but eloquent rely on laravel, inconvenient to take out alone use.