gpt4 book ai didi

symfony - 将 Symfony1.4 迁移到 Symfony 2.2 - 重用什么以及如何重用

转载 作者:行者123 更新时间:2023-12-01 01:11:25 26 4
gpt4 key购买 nike

我即将将旧的 Symfony 1.4 应用程序迁移到 Symfony 2.2。我认为这至少应该是有计划的。所以我有几个问题,也许你可以帮助我:

  • 有没有好的教程(我没有找到)
  • 是否可以重用我的旧 schema.yml 和设备?
  • 我知道 doctrine:mapping:import但我认为这不是一个好主意。你对这个命令有很好的经验吗?

  • 迁移旧数据不是很重要,因为应用程序处于非事件状态,可以从头开始。但是,我希望在创作中节省一些时间。所以更多的是关于功能迁移。

    最佳答案

    依次回答您的问题:

    Is there maybe a good Tutorial out there (I didn't found one)



    没有关于在版本之间迁移的文档,因为这不太可能 - 这两个框架非常不同 - 我建议您几乎需要重新开始。 Read this on the differences between the 2 versions

    Is it possible to reuse my old schema.yml and fixtures?



    您可以直接从数据库导入您的数据库结构 - 但不能从 schema.yml 导入。您不能重复使用旧灯具 - fixtures are still available though

    I know about doctrine:mapping:import but I think this is not a good idea. Do you have good experiences with this command?



    当我将应用程序从 1.4 迁移到 2.1/2.2 时,它对我来说效果很好 - 一切都被拾取了对象、属性和关系 - 我建议使用它

    然而,我想说 Symfony(1.4 和 2)的文档非常好 - 书籍和食谱写得很好且易于阅读。

    关于symfony - 将 Symfony1.4 迁移到 Symfony 2.2 - 重用什么以及如何重用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15220865/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com