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

Fatal error: Cannot override final method Phalcon\Mvc\Model::getSource()

Hi!

I trying to test 4beta1 with php 7.3. It was ok, but today I got: Fatal error: Cannot override final method Phalcon\Mvc\Model::getSource()

Any ideas?

Thank you!



4.9k
Accepted
answer

Found it: now we must use setSource at initialize instead... solved

edited Oct '20

Found it: now we must use setSource at initialize instead... solved

public function initialize()
{       
    $this->setSchema("phalcon_demo-app");       
    $this->setSource("users");        
}

I tried it but still does not work!