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.4k
Accepted
answer

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

edited 7d ago

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!