for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Zemit Framework.
*
* (c) Zemit Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Zemit\Models;
use Zemit\Models\Base\AbstractMenu;
use Phalcon\Validation\Validator\PresenceOf;
use Phalcon\Validation\Validator\StringLength\Max;
* Class Menu
* @package Zemit\Models
class Menu extends AbstractMenu
{
protected $deleted = self::NO;
public function initialize()
parent::initialize();
// @todo relationships
}
public function validation()
$validator = $this->genericValidation();
// @todo validations
return $this->validate($validator);