Questions tagged «magento-2.0.5»

4
抽象模型中不建议使用的保存和加载方法
我看到,在Magento的2回购的开发分支的方法load,并save从Magento\Framework\Model\AbstractModel阶级已被弃用。 但是核心中有大量的类可以扩展这个类并使用save和load。 在为实体的CRUD部分创建自己的模块时,我遵循与核心模块相同的准则。 但是,由于不赞成使用这些方法,所以我宁愿为将来做准备。 我应该用什么代替它们?还是我应该扩展其他内容?

2
Magento 2:什么是catalog_attributes.xml文件?
我注意到Magento 2 catalog_attributes.xml在以下文件夹中包含几个文件: app/code/Magento/Bundle/etc app/code/Magento/Catalog/etc app/code/Magento/CatalogSearch/etc app/code/Magento/CatalogUrlRewrite/etc app/code/Magento/Downloadable/etc app/code/Magento/GiftMessage/etc app/code/Magento/Msrp/etc app/code/Magento/Sales/etc app/code/Magento/Tax/etc app/code/Magento/Wishlist/etc 这些文件如下所示(该Sales文件的示例): <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd"> <group name="quote_item"> <attribute name="sku"/> <attribute name="type_id"/> <attribute name="name"/> <attribute name="status"/> <attribute name="visibility"/> <attribute name="price"/> <attribute name="weight"/> <attribute name="url_path"/> <attribute name="url_key"/> <attribute name="thumbnail"/> <attribute name="small_image"/> <attribute name="tax_class_id"/> <attribute name="special_from_date"/> <attribute name="special_to_date"/> <attribute name="special_price"/> <attribute …

8
软件包fabpot / php-cs-fixer在Magento 2中被废弃
我正在使用Magento 2.0.5。当我运行composer updateor composer install命令时,它显示以下警告。 软件包fabpot / php-cs-fixer被放弃了,您应该避免使用它。请改用friendsofphp / php-cs-fixer。 我读了https://github.com/paliarush/magento2-vagrant-for-developers/issues/46,但是什么也没得到。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.