app/models/Mountain.php:
<?php
namespace MyProject\Models;
class Mountain extends Model
{
public function initialize()
{
$this->hasMany('seqID', '\MyProject\Models\MountainImages', 'seqID', ['alias' => 'mountainImages']);
}
}
?>
app/models/MountainImages.php:
<?php
namespace MyProject\Models;
class MountainImages extends Model
{
}
?>
위에 처럼 네임스페이스명을 추가해주고, alias 를 추가해주면 됩니다.