Good Day
Have the following model
<?php
use Phalcon\Mvc\Collection;
class Customer extends Collection
{
protected $clientId;
protected $created;
public function beforeCreate()
{
$this->created = new \DateTime();
}
public function getSource()
{
return 'customers';
}
public function setClientID($clientId)
{
$this->clientId = $clientId;
return $this;
}
}
$customer = new Customer()
$customer->setClientID('USER1')
->save();
But properies not saved, if I declare them as public it works.
What's the problem here?
https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/collection.zep#L882-L905 I can clearly see it should work?