We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon\Mvc\Model BUG??? [solved - not bug]

Hello.

Why the error occurred???

Scanning error before 'Vokuro\Models\Re...' when parsing: SELECT [Vokuro\Models\Ref\СurrencyСodes].* FROM [Vokuro\Models\Ref\СurrencyСodes] (85)

<?php

namespace Vokuro\Models\Ref;

use \Phalcon\Mvc\Model;

/**
 * СurrencyСodes
 */
class СurrencyСodes extends Model
{
    public function getSource()
    {
        return 'currency_codes';
    }

    public function getSchema()
    {
        return 'ref';
    }
}

CREATE TABLE currency_codes ( id integer NOT NULL, alpha_3 character(3) NOT NULL, "numeric" smallint NOT NULL, description character varying(255) NOT NULL );



42.1k
Accepted
answer

Problem solved. Was somewhere a syntax error, which I never found (found, in my Cyrillic character "C" was in the class name and the file name). It was decided to delete all and re-create the table and model.