Hello,
I have model Users. What is the easiest way to check if column exists in database users table? Is this the only way:
$columns = $this->getDI()->get('db')->describeColumns($this->getSource());
foreach ($columns as $column)
if ('deleted' == $column->getName())
{
if (empty($this->deleted))
$this->deleted = new \Phalcon\Db\RawValue('default');
break;
}