小编Dan*_*den的帖子

数据库故障 - 数据库模式与当前映射文件不同步

任何人都可以解释以下doctrine架构验证错误消息:

架构验证函数返回的错误消息

以下是manyToMany关系中每个实体的yaml ORM定义,与文档的第5.9节内联创建.

Rep\Bundle\ProjectBundle\Entity\User:
    type: entity
    table: User
    fields:
        id:
            id: true
            type: integer
            unsigned: true
            nullable: false
            generator:
                strategy: AUTO
        username:
            type: string
            length: 25
            fixed: false
            nullable: false
        salt:
            type: string
            length: 32
            fixed: false
            nullable: false
        password:
            type: string
            length: 40
            fixed: false
            nullable: false
        email:
            type: string
            length: 60
            fixed: false
            nullable: false
    manyToMany:
        roles:
            targetEntity: UserRole
            inversedBy: users
            joinTable:
                name: UserRoleLookup
                joinColumns:
                    user_id:
                        referencedColumnName: id
                inverseJoinColumns:
                    user_role_id:
                        referencedColumnName: id
    lifecycleCallbacks: {  }
Run Code Online (Sandbox Code Playgroud)

和UserRole逆yaml配置: …

yaml doctrine symfony doctrine-orm

12
推荐指数
3
解决办法
2万
查看次数

android.content.res.Resources $ NotFoundException:资源不是Drawable(颜色或路径):TypedValue {t = 0x2/d = 0x7f010076 a = 2}

如果这是重复的道歉,我确实尝试找到任何类似的答案,然后失败,因为似乎没有任何参考ImageView?我不是Android开发者,但是我们在旧版操作系统版本上看到了我们的应用程序问题!

堆栈跟踪:

02-20 09:56:15.885  11529-11529/com.octer E/AndroidRuntime? FATAL EXCEPTION: main
android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010076 a=2}
        at android.content.res.Resources.loadDrawable(Resources.java:2063)
        at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
        at android.view.View.<init>(View.java:3364)
        at android.widget.ImageView.<init>(ImageView.java:121)
        at android.widget.ImageButton.<init>(ImageButton.java:87)
        at com.android.internal.view.menu.ActionMenuPresenter$OverflowMenuButton.<init>(ActionMenuPresenter.java:556)
        at com.android.internal.view.menu.ActionMenuPresenter.initForMenu(ActionMenuPresenter.java:99)
        at com.android.internal.view.menu.MenuBuilder.addMenuPresenter(MenuBuilder.java:216)
        at com.android.internal.widget.ActionBarView.configPresenters(ActionBarView.java:483)
        at com.android.internal.widget.ActionBarView.setMenu(ActionBarView.java:448)
        at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:405)
        at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:775)
        at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:198)
        at android.os.Handler.handleCallback(Handler.java:730)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5103)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)
Run Code Online (Sandbox Code Playgroud)

我确实在互联网上发现了这篇文章,但没有一个解决方案似乎已经解决了.问题是代码构建并在Nexus 5上运行,但不适用于旧型号手机.

未找到调试资源的网站

android

0
推荐指数
1
解决办法
8196
查看次数

标签 统计

android ×1

doctrine ×1

doctrine-orm ×1

symfony ×1

yaml ×1