-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Using Cycle ORM #23
Using Cycle ORM #23
Conversation
Why to use Cycle ORM instead Yii orm ? |
Same reason as usually - reduce maintenance costs due to insufficient funding of core developers :-( |
Have we a comparison between yii-orm and Cycle ORM? Usabilty,Performance etc? |
@demonking |
By proceeding in this way, Yii will become a set of external libraries and we will dependent from all of these. If they change something, we mandatory need to change. Bad thing. |
With yii3 you can use any library including Active Record of Yii2, the point is that you have to migrate it and that will take time, you can contribute helping in the migration. |
But it's not that easy with Yii ORM and Cycle ORM, the usage is different. You cannot switch them without problems. Cycle uses Annotation, Yii AR don't (or i haven't seen it). Also samdark mentioned it in all new issue's with enchantment's |
Seems there are questions about our plans:
|
Is it very easy to make Cycle build without Annotations (they are specifically moved out of core). We would def consider alternative ways of mapping definition if someone can propose Yii-like alternative. |
@samdark ✋ |
@samdark |
I sincerely believe that this discussion has left the subject, simply Yii 3 will not be equal to Yii 2, and understanding what @samdark says, everything will be migrated, everything will also depend on the help of the community. |
Yes, let's not off-topic here. If you have ideas to discuss, let's use forums. |
TODO
|
This behavior is hard-coded here. If needed singular in table names then only manually set this in the annotations |
@samdark @roxblnfk check 2.0.2, you can now configure the naming strategy for tables. https://github.com/cycle/annotated/blob/master/src/Entities.php#L31 |
@wolfy-j wow, my comment has outdated in just 18 minutes :) |
Most code migrated to yiisoft/yii-cycle#1 |
* Replaced the variable with the getter method. (#24) * Remove unused views * Update meta files * Tune config * Allow accessing container instance in globals.php See yiisoft/di#99 * ContectController fix mailer params (#28) * Added routes names and replaced static URL to dynamic (#29) * Use `auth` package (#30) * Config fix
In this pull request we're using Cycle ORM to store user data.
There's a console command
./vendor/bin/yii user/create
to create a user. After user is created you can try logging in with credentials entered.