New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base for a blog example #49
Conversation
# Conflicts: # resources/mail/layouts/html.php
# Conflicts: # composer.json # config/console.php # src/Entity/User.php # src/Factory/AppRouterFactory.php # src/globals.php
# Conflicts: # composer.json # config/common.php # src/Entity/User.php # src/Factory/AppRouterFactory.php # src/Repository/UserRepository.php # src/globals.php
# Conflicts: # config/params.php # src/Command/User/CreateCommand.php
Classes should be grouped either by a type or by a layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, consider my comments also for similar classes (controllers, entities, repositories)
@@ -19,6 +19,7 @@ | |||
"require": { | |||
"php": "^7.4", | |||
"cebe/markdown": "^1.2@dev", | |||
"cycle/proxy-factory": "^1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be required directly? Do we need it all the time? If so, does it make sense to move it to yii-cycle?
Don't forget to make your controllers compatible. (#54 already in |
@xepozz isn't it already done? |
Oh, sorry. It's already complete :) |
…d of ORMInterface
Fixed in yiisoft/yii-cycle#23 and last commit |
Merged! Awesome job overall 👍 Let's continue with further fixes / enhancements separately. |
Quick start
config/params.php
(you can skip this step)composer install
vendor/bin/yii serve
or start your web-serverOn this step the Cycle ORM will create tables, indexes and relations automatically in the configured DB.
If you want to disable this behavior then comment out line with
Generator\SyncTables::class
in theconfig/params.php
file. In this case you should create migrations to sync changes of entities with DBvendor/bin/yii fixture/add 20
to create random dataFeatures:
yii serve
)Todo:
OffsetPaginator
fromyiisoft/data
packageyiisoft/widget
integration