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
8243
Activity
i18n in model fields
I think you're trying to make something simple into something very complicated. If you want to do it like this, use an EAV container, but give the EAV table an additional key column (the language code), and use the language code required as a…
Comment by
WanWizard
November 2014
permalink
ORM from subquery
Try switching to 1.8/dev for the ORM package. I've made some changes to move WHERE clauses to the subquery when they only reference a column of the main table, and I'm not sure they made the 1.7.2. release.
Comment by
WanWizard
November 2014
permalink
Nested Many-to-many relationship
You're welcome. Happy coding!
Comment by
WanWizard
November 2014
permalink
Nested Many-to-many relationship
Ah, sorry, missed that link. You related them to the trough table? Then you need to make that a model for your through table to, and you get the following relations: // the many-to-many relation can stay users has_many books, books has_many users …
Comment by
WanWizard
November 2014
permalink
Designing a package for release with v1 and v2
You have to make sure you have your terminology right. v2 doesn't have the concept of packages and modules like v1 has. In v2, everything is a loadable class. And a v1 package is not the same as a composer package. And I think you mean somethi…
Comment by
WanWizard
November 2014
permalink
Nested Many-to-many relationship
Are highlights and bookmarks now different tables? From your first post I assumed those where fields in the through table. If these are tables, you have different relations: users has_many hightlights, hightlights belongs_to users books has_many h…
Comment by
WanWizard
November 2014
permalink
Nested Many-to-many relationship
Then you'll need to split the many-to-many into two one-to-many's, and create a new model for the "through" table. Note that you can use both relation types at the same time, so you can use the many-to-many to get all books of a…
Comment by
WanWizard
November 2014
permalink
OPAuth question.
That's an OpAuth method meaning the the "opauth" variable is not present in the QUERY_STRING in the callback URL. (opauth.php, line 360)
Comment by
WanWizard
November 2014
permalink
OPAuth question.
It should not go there, unless you're running old code. Auto register requires a password, which obviously you don't get from your opauth provider. Current code generates a random one, creates the account, and returns "registered&qu…
Comment by
WanWizard
November 2014
permalink
OPAuth question.
So when you get your callback, what is the result of $status = $opauth->login_or_register(); You have noticed that the Message class used in the example is not a part of the framework? You should get "register" back, meaning the us…
Comment by
WanWizard
November 2014
permalink
Magic migrations affecting model
You have to do that manually.
Comment by
WanWizard
November 2014
permalink
where, when using related models and limit / offset with relation consistence
No, That version is about 3 years old, and is no longer maintained. You could try to swap your current Orm package for the 1.8/develop version (https://github.com/fuel/orm/archive/1.8/develop.zip), perhaps that will work if there weren't too m…
Comment by
WanWizard
November 2014
permalink
OPAuth question.
It's been a busy weekend for you. ;-)
Comment by
WanWizard
November 2014
permalink
Fuel Parser.
I've added a fix to both the core View class and the Parser package, so if you both update to the latest 1.8/develop, Twig should work as advertised.
Comment by
WanWizard
November 2014
permalink
Fuel Parser.
Just for my understanding: - you added the above in app/config/parser.php - you have copied app/views/welcome/hello.php to app/views/welcome/hello.twig - changed the "echo $name" to "{{ name }}" - changed app/classes/controller/w…
Comment by
WanWizard
November 2014
permalink
Fuel Parser.
In the config file. The default is 'extensions' => array( 'twig' => 'View_Twig', 'mthaml' => array('class' => 'View_HamlTwig', 'extension'…
Comment by
WanWizard
November 2014
permalink
Fuel Parser.
Try switching the Parser package to 1.8/develop. I've seen there were some Lex fixes after the release of 1.7.2, perhaps someone else bumped into this issue to?
Comment by
WanWizard
November 2014
permalink
Fuel Parser.
Does that mean it works now?
Comment by
WanWizard
November 2014
permalink
Update fuel 1.7.2 zip link
Hmm... Thought that was already fixed. Thanks for reporting it!
Comment by
WanWizard
November 2014
permalink
Die Hard Laravel User, not so Die Hard Anymore.....
I can't imagine Phil contributing much, he didn't do that here too. ;-) I think it is important for core developers to be present in the community. Especially for a community driven project, without any company backing (money or not). Fu…
Comment by
WanWizard
November 2014
permalink
Die Hard Laravel User, not so Die Hard Anymore.....
Lol, the answer, as usual, is "it depends". Assuming you don't have any core extensions, the goal is to limit the changes to search-and-replace type. Obviously, we can't guarantee anything until v2 is actually there, and we…
Comment by
WanWizard
November 2014
permalink
where, when using related models and limit / offset with relation consistence
The limit and offset are where they should be, this is by design, to avoid getting incomplete results. The correct question would be "why is the WHERE clause not in the subquery too". This suggests you running an old(er) version of FuelP…
Comment by
WanWizard
November 2014
permalink
oil create doesn't clone recursively
Correct, components are now installed through Composer, we don't do git submodules anymore.
Comment by
WanWizard
November 2014
permalink
Die Hard Laravel User, not so Die Hard Anymore.....
Welcome back Matt! ;-) I hope we do better than Laravel in this respect: we don't like bloatware either, and absolutely no fans of Symfony. One of the reasons we started with FuelPHP was because we feld the need for a simple, fast and stable …
Comment by
WanWizard
November 2014
permalink
where, when using related models and limit / offset with relation consistence
I can not reproduce it, I get 5 records back, as expected. See http://bin.fuelphp.com/snippet/view/Ix for my test models, code, data and result.
Comment by
WanWizard
November 2014
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,385
Last Active
11:36AM
Roles
Administrator