corcel: Undefined property: Corcel\Post::$meta
Hi!! I am trying to install the package but I get this error:
Undefined property: Corcel\Post::$meta
********
public function __get($key)
{
if (!isset($this->$key)) {
-->ERROR IS HERE? return $this->meta->$key;
}
********
Can you guide me where can be the error?
I have this code:
$params = array(
'database' => 'syscover-wp',
'username' => 'carlos',
'password' => '33527667Sb',
);
\Corcel\Database::connect($this->params);
$post = Post::published()->get();
thanks!!
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 27 (13 by maintainers)
Commits related to this issue
- Merge pull request #1 from mikepsinn/array-phpdocs Updated PHPDocs to reflect array parameter options — committed to corcel/corcel by mikepsinn 4 years ago
- Merge pull request #1 from bumbummen99/patch-1 Use Bootstrap Paginator — committed to corcel/corcel by Jubeki 4 years ago
I’m gonna let this issue opened. If there are no more errors I’ll close it. Thanks @philsown for helping.
Checked out dev - seems to work. Thanks!