douzhan8395 2009-09-23 15:19
浏览 23

AMFPHP Flex Propel Mapping类超奇怪的bug

I'm working on a website using : - Flex 3.4 - AMFPHP 1.9b - Propel 1.3 - PHP/MySQL

My problem is really strange and I've been spending hours trying to know where it comes from.

I'll try to focus on the problem which takes place in a whole system.

To sum up, I have 2 entities (MySQL) :

create table AAA
(
   id_AAA              int not null auto_increment,
   id_BBB              int,
   primary key (id_AAA)
)
type = innodb;

create table BBB
(
   id_BBB              int not null auto_increment,
)
type = innodb;

alter table AAA add constraint fk_AAA_BBB foreign key (id_BBB)
      references spot (id_BBB) on delete cascade on update cascade;

I retrieve all my BBB, they are mapped from PHP classes (generated by Propel) to AS3 classes on the Flex side.

But when I create a AAA row in the database.

I retrieve all my BBB, and all objects are mapped EXCEPT the BBB whose id corresponds to the foreign key in the inserted AAA row.

I really have no clue about why and how ... if you know anything about how AMFPHP / Propel / Flex are dealing with Foreign Keys and why class mapping is failing right here.

The weird thing is that it seems to happen only for this specific case ...

Thank you !

  • 写回答

1条回答 默认 最新

  • douhuan3448 2009-09-25 13:48
    关注

    Class mapping is failing when making batch calls !

    I read this to lead me to a solution : http://amfphp.sourceforge.net/docs/commonerrors.html

    When make AMFPHP remote object call one at the time, the objects are correctly mapped.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题