for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord;
use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\ActiveRecord;
/**
* @property int $id
* @property string $alpha_string_identifier
* @property Alpha $alpha
*/
final class Beta extends ActiveRecord
{
public function getTableName(): string
return 'beta';
}
public function getAlpha(): ActiveQuery
return $this->hasOne(Alpha::class, ['string_identifier' => 'alpha_string_identifier']);