You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Il giorno 21 set 2018, alle ore 23:14, HuangJP ***@***.***> ha scritto:
其中有部分ORM其实是不需要extra字段和id字段
但是代码中很多地方又强依赖了这些字段比如Object的fetch方法:
public function fetch($force = false)
{
if ($this->criteria() === null && $this->those) {
//try those API
$ids = (array) $this->those->limit(1)->get('id');
$this->criteria(reset($ids));
}
return parent::fetch($force);
}
是否可以提供一种属性值unset或者另一个可供继承的类比如PureObject之类来节省不必要的字段?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
其中有部分ORM其实是不需要extra字段和id字段
但是代码中很多地方又强依赖了这些字段比如Object的fetch方法:
是否可以提供一种属性值
unset
或者另一个可供继承的类比如PureObject
之类来节省不必要的字段?The text was updated successfully, but these errors were encountered: