php - 如何访问树枝中另一个实体内部的实体?
问题描述
我有两张桌子:
钥匙
- ID
- 钩
- 橱柜
历史
- 日期
- 行动
- 钥匙
如何访问Twigkey
中的实体内部?history
{{ history.key.hook }}
似乎不起作用?
{{ dump(history) }}
提供这个:
object(RedBeanPHP\OODBBean)#120 (10) { ["properties":protected]=> array(5) { ["id"]=> string(1) "1" ["date"]=> string(19) "2018-12-06 16:06:21" ["action"]=> string(6) "Issued" ["user_id"]=> string(1) "1" ["key_id"]=> string(2) "17" } ["__info":protected]=> array(7) { ["type"]=> string(7) "history" ["sys.id"]=> string(2) "id" ["sys.orig"]=> array(5) { ["id"]=> string(1) "1" ["date"]=> string(19) "2018-12-06 16:06:21" ["action"]=> string(6) "Issued" ["user_id"]=> string(1) "1" ["key_id"]=> string(2) "17" } ["tainted"]=> bool(false) ["changed"]=> bool(false) ["changelist"]=> array(0) { } ["model"]=> NULL } ["beanHelper":protected]=> object(RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper)#28 (0) { } ["fetchType":protected]=> NULL ["withSql":protected]=> string(0) "" ["withParams":protected]=> array(0) { } ["aliasName":protected]=> NULL ["via":protected]=> NULL ["noLoad":protected]=> bool(false) ["all":protected]=> bool(false) }
解决方案
推荐阅读
- alexa - 如何修复“询问部署”期间的创建 lambda 错误
- javascript - 在本机反应中从聊天组件中接收消息的方法
- android - Kotlin Coroutines-Android 中 RXJava 等价物的 Completable.create
- python-3.x - 无法在 openbox 上设置 wx.frame 的位置
- garbage-collection - Why does Concurrent-Mark-Sweep (CMS) remark phase need to re-examine the thread-stacks instead of just looking at the mutator's write-queues?
- c - GNU C: What will happen if i overwrite malloc() free() but not realloc()?
- django - Third party model not shown in Django custom admin site (MaterialAdmin)
- javascript - Unable to access cookie from fetch() response
- c# - C# 中的 SQL Server Express 连接字符串错误
- python - 使用调试 Python 安装在 Windows 上构建 Python-C 扩展