Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Installing database package 2.0?
  • Hello there!

    First, thanks for this awesome work.

    I'm starting a new project, actually, refactoring an old website.

    Should I use the new database package 2.0 and how can I install it?

    I use PostgreSQL.

    Best regards,
    François
  • HarroHarro
    Accepted Answer
    It's not 100% complete yet, but you can install it like all other 2.0 components, using Composer.

    Check the composer.json file in your installation root, it already contains Upload, you can just add Database to it.
  • Ok, thank you, what about ORM, will it use the new database components?

    Or  will I have to do something to adapt?
  • HarroHarro
    Accepted Answer
    No, the current ORM is hardcoded to use the existing 1.x DB layer.

    There's a new 2.0 ORM coming that will use the 2.0 DBAL, but it's not ready yet.
  • ok, I'll stay with 1.x DB then

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion