php - PHP Propel 委托行为
问题描述
我已经实现了这样的行为
<table name="user" idMethod="native" phpName="User">
<column name="id" phpName="Id" type="INTEGER" size="12" primaryKey="true" autoIncrement="true" required="true"/>
<behavior name="delegate">
<parameter name="to" value="user_profile" />
</behavior>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="user_profile" idMethod="native" phpName="UserProfile">
<column name="avatar" phpName="Avatar" type="VARCHAR" size="255"/>
<column name="birthday" phpName="Birthday" type="DATE" required="true" defaultValue="0000-00-00"/>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
在迁移和构建模型命令之后,我仍然无法获得 ActiveRecord 方法,我错过了一步吗?
解决方案
推荐阅读
- protractor - 如何使用 jasmin 开始量角器自动化
- mysql - 将 blob 数据类型值插入 mysql 表时出错
- php - 在 PHP 中,如果我希望每个用户都拥有我想要保留的唯一数据,并且只在他们登录时加载,我该怎么做?
- pandas - 保留具有最新日期的行以匹配 ID。删除所有具有旧日期的行以匹配 id
- sql - Oracle:具有散列集群的多块读取对象
- vb.net - vb.net如何创建登录权限
- c - strtok 问题以比较 strtok 函数的嵌套结果中的两个单词
- android-layout - 无法将渐变设置为按钮。安卓
- tensorflow - 如何在keras中指定层数?
- r - read.csv 用函数读取 csv 文件,单元格用 ="{value}" 包裹