mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-20 06:08:08 +01:00
Appended newlines to every PHP document that did not have a newline as the last character in the file.
22 lines
332 B
PHP
22 lines
332 B
PHP
<?php
|
|
|
|
namespace yiiunit\data\ar;
|
|
|
|
class OrderItem extends ActiveRecord
|
|
{
|
|
public static function tableName()
|
|
{
|
|
return 'tbl_order_item';
|
|
}
|
|
|
|
public function getOrder()
|
|
{
|
|
return $this->hasOne('Order', array('id' => 'order_id'));
|
|
}
|
|
|
|
public function getItem()
|
|
{
|
|
return $this->hasOne('Item', array('id' => 'item_id'));
|
|
}
|
|
}
|