所以也许这是一个愚蠢的问题,但我一生都无法弄清楚如何让 iPhone 应用程序的逐个构建输出出现在某种控制台中。
我需要验证某个构建步骤是否正在发生,因此我需要从构建中获取逐行输出。在Android中,这是一个微不足道的任务,但在Xcode中似乎并不那么容易。
我的意思是我想要一个看起来大致像这样的输出,而不必观看屏幕顶部中心的小盒子:
Starting build...
Fooing bar...
Reticulating splines...
Compiling source code...
Linking...
Uploading debug symbols...
Transferring $50k to bank account...
Build SUCCESS after 2m 30s
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
当我尝试创建我的产品实体时,我得到以下错误:
执行'INSERT INTO产品时出现异常(代码,名称,描述,订单,库存,条目,创建,制造,到期,开始_数量,购买价格,开盘价格,价格,可见,停止,查看,关于,brand_id,groups_id,measurement_id, gender_id)VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'与params [ 432211,"trolly bag","description",0,2,"2016-02-01 15:02:57","2016-02-01 15:02:57","2011-03-08"," 2016-09-12",2,100,100,100,1,0,0,"约",2,2,null,null]:
SQLSTATE [42000]:语法错误或访问冲突:1064 SQL语法中有错误; 查看与您的MySQL服务器版本对应的手册,以便在第1行的'order,stock,entry,created,manufacture,expire,opening_quantity,purchase_p'附近使用正确的语法
产品实体:
在这里输入代码命名空间AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="products")
* @ORM\HasLifecycleCallbacks
* @ORM\Entity(repositoryClass="AppBundle\Repository\ProductRepository")
*/
class Product
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="integer")
*/
protected $code;
/**
* @ORM\Column(type="string", length=100)
*/
protected $name;
/**
* @ORM\Column(type="text")
*/
protected $description;
/**
* @ORM\Column(type="integer")
*/
protected $order; …Run Code Online (Sandbox Code Playgroud) 我需要在我的Symfony2应用程序来实现syliusOrderBundle,我看了他们的官方网站上的文档和重新http://docs.sylius.org/en/latest/bundles/SyliusOrderBundle/installation.html 我已经结束了安装和启用以下捆绑
Run Code Online (Sandbox Code Playgroud)new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(), new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle(), new Sylius\Bundle\OrderBundle\SyliusOrderBundle(), new Sylius\Bundle\CartBundle\SyliusCartBundle(), new Sylius\Bundle\ProductBundle\SyliusProductBundle(), new Sylius\Bundle\ArchetypeBundle\SyliusArchetypeBundle(), new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(), new Sylius\Bundle\AssociationBundle\SyliusAssociationBundle(), new Sylius\Bundle\VariationBundle\SyliusVariationBundle(),
由于安全原因,问题在于用户不愿意安装不必要的捆绑软件,而sylius文档无济于事。我需要做的就是,如果您以前曾使用过产品,可以将其添加到订单中。谢谢