Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
I got odd error
  • I buid this command:

    php oil generate scaffold someNews titre:string permalien:varchar[250] contenu:text

    php oil refine migrate


    from the page in FF, i got that:

    Fuel\Core\Database_Exception [ Error ]: SQLSTATE[42S02]: Base table or
    view not found: 1146 Table 'fuel_dev.some_news' doesn't exist with
    query: "SELECT `t0`.`id` AS `t0_c0`, `t0`.`titre` AS `t0_c1`,
    `t0`.`permalien` AS `t0_c2`, `t0`.`contenu` AS `t0_c3`,
    `t0`.`created_at` AS `t0_c4`, `t0`.`updated_at` AS `t0_c5` FROM
    `some_news` AS `t0`"

    Why table's name become some_news instead someNews !!??
  • HarroHarro
    Accepted Answer
    FuelPHP doesn't do CamelCase, it will convert it lowercase with an underscore separator.

    I agree it's a bit odd to do that for table names though, that looks like a bug. Can you create an issue for this at https://github.com/fuel/oil/issues so it can be looked at?
  • Ok, i do !

Howdy, Stranger!

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

In this Discussion