for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Models;
class Apps extends \Baka\Auth\Models\Apps
{
/**
*
* @var integer
*/
public $id;
* @var string
public $name;
public $description;
public $created_at;
public $updated_at;
public $is_deleted;
* Ecosystem default app
const GEWAER_DEFAULT_APP_NAME = 'Default';
* Initialize method for model.
public function initialize()
parent::initialize();
$this->setSource('apps');
}
* You can only get 2 variations or default in DB or the api app
* @param string $name
* @return Apps
public static function getACLApp(string $name): Apps
if (trim($name) == self::GEWAER_DEFAULT_APP_NAME) {
$app = self::findFirst(0);
} else {
$app = self::findFirst(\Phalcon\DI::getDefault()->getConfig()->app->id);
return $app;
* Returns table name mapped in the model.
* @return string
public function getSource() : string
return 'apps';