We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.8k
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!