ttgive / qeephp

Automatically exported from code.google.com/p/qeephp
0 stars 0 forks source link

实现 ActiveRecord 对单表继承的支持 #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
不限定继承几层;
可以设置内置的查询条件,以便在查询对象集时,能够找出��
�定类型的对象。

Original issue reported on code.google.com by dualf...@gmail.com on 28 Apr 2008 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by dualf...@gmail.com on 3 May 2008 at 3:21

GoogleCodeExporter commented 9 years ago
从基础类查询时,应该可以指定通过什么字段来确定实际的��
�象类型。

例如:

{{{
abstract Fruit Member extends QDB_ActiveRecord_Abstract
{
}

class Apple extends Fruit
{
}

$apple = Fruit::find('id = ?', $apple_id)->query();
// 此时 $apple 应该是一个 Apple 对象实例
}}}

Original comment by dualf...@gmail.com on 22 Sep 2008 at 7:52