Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
ORM Temporal config load
Fixed in 1.7.1.
Comment by
WanWizard
December 2013
permalink
is_ajax() or extension()
From a best practice point of view, your REST API should be separate from your interactive pages. So I would not build something like this. Also, you can only do this with Controller_Hybrid, and as of 1.7.1 is can handle this itself (although not w…
Comment by
WanWizard
December 2013
permalink
Manual slug with Observer_Slug
Up until 1.7, the slug is always generated, and updates the model property, empty or not. As of 1.7.1, the Observer_Slug will have the option to disable overwriting an already existing value.
Comment by
WanWizard
December 2013
permalink
Temporal logic used for history
If you're only interested in one field (for example to plot changes against time, like in a server up or down), I would use a seperate table.
Comment by
WanWizard
December 2013
permalink
Trouble with OrmAuth migration
You can check which migrations are installed using oil r migrate --all -v Or check your app/config//migrations.php to see which migrations have run. You can undo (revert) a migration using "migrate:down". In case of Auth migrations, t…
Comment by
WanWizard
November 2013
permalink
Observer Slug separator
Merged by Steve.
Comment by
WanWizard
November 2013
permalink
Manual slug with Observer_Slug
The name of the column (the ORM object property) in which the generated slug is saved.
Comment by
WanWizard
November 2013
permalink
Temporal logic used for history
It depends. If you want the complete previous object back, Temporal is the correct choice. If you want an audit log of who has changed what, a separate log table is a better choice.
Comment by
WanWizard
November 2013
permalink
Observer Slug separator
Sure, as long as it's driven by a parameter, and the default is the current situation (which I think is a dash).
Comment by
WanWizard
November 2013
permalink
Trouble with OrmAuth migration
fixed that message: https://github.com/fuel/core/commit/c3b97ba57ddb077113408eee8482ba3b0eb485e2 it will now tell you if a package can not be found.
Comment by
WanWizard
November 2013
permalink
Oil generate models with wrong migration name
Haven't seen the issue, but it's fixed in 1.8/develop: https://github.com/fuel/oil/commit/918f6e5ce7b4b87d674e9514f264d9dcb4e0d5aa
Comment by
WanWizard
November 2013
permalink
Trouble with OrmAuth migration
It the package path defined in your config.php? For some reason it also displays this message if it can't find any migrations...
Comment by
WanWizard
November 2013
permalink
Oil generate models with wrong migration name
Found the issue. Duplicate migration detection is borked. I won't have time for this today, could you create an issue for this at https://github.com/fuel/oil/issues ?
Comment by
WanWizard
November 2013
permalink
Oil generate models with wrong migration name
Funny thing is that if I run your second generation again (using -f), it does create the correct migration...
Comment by
WanWizard
November 2013
permalink
Oil generate models with wrong migration name
Ah, missed that, just looked at the "creating migration" lines. I've looked in the code, but I have no clue where the "_action" in the second migration comes from. The model generation code calls the migration generation me…
Comment by
WanWizard
November 2013
permalink
How to count results of an ORM query with related fields
No problem, good to see you have it sorted.
Comment by
WanWizard
November 2013
permalink
Use of Hydration
You can run custom queries using DB calls, and use as_object('Model_Something') to return the result as ORM model objects. There are some restrictions, one being the primary key needs to be part of the result. Also, there is no support fo…
Comment by
WanWizard
November 2013
permalink
Oil generate models with wrong migration name
The first migration is a class called Create_Api_Users_Actions. The second one must be suffixed, otherwise you'll end up with duplicate class names, which will cause the migration run to crash.
Comment by
WanWizard
November 2013
permalink
Use of Hydration
hydrate() is not something you can use, it's an internal method in the query class, which processes rows in the result, and splits join data (for related models) into different objects.
Comment by
WanWizard
November 2013
permalink
How to count results of an ORM query with related fields
I don't see why it is not possible. Have you tried it? And what was wrong with the result?
Comment by
WanWizard
November 2013
permalink
Listing Role actions OrmAuth
In our app framework, permissions are added automatically by modules, and are linked to language strings to give a localized description of the permission. We do it in a Viewmodel, which constructs an array ordered by translated actions / permissio…
Comment by
WanWizard
November 2013
permalink
Casset doesn't works in FuelPHP 1.7
In general, if you have issues, check if the latest develop branches fixes it (this issue is already fixed).
Comment by
WanWizard
November 2013
permalink
How to sub sub module?
I don't know cPanel, so I don't know what is possible and what not. If you can't control your document root location, you have to resort to installing everything in the docroot, no other option. In that case I would leave the ./fue…
Comment by
WanWizard
November 2013
permalink
How to sub sub module?
DOCROOT is normailly your webserver's document root. The idea behind the default fuelphp folder structure is that you map your webserver's document root to the public folder, so all your code is outside the document root. If it is inside …
Comment by
WanWizard
November 2013
permalink
Database select problem
That may take a while, v2 won't be ready until summer next year (or so).
Comment by
WanWizard
November 2013
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,372
Last Active
7:49AM
Roles
Administrator