Skip to content

Shopware dal:validate returning warnings. #87

Description

@Kudze

Hello I have installed this plugin on newest Shopware 6 version (6.7.14.0).

Running ./bin/console dal:validate which should validate all DAL definitions, this plugin reports quite some warnings:

./bin/console dal:validate                                                                                                                                                          18:31:30

Data Abstraction Layer Validation
=================================

Checking for errors in entity definitions
=========================================

Shopware\Core\System\Tag\TagDefinition
--------------------------------------

 * Missing reverse many-to-many association for original Werkl\OpenBlogware\Content\Blog\BlogEntryDefinition.tags


Werkl\OpenBlogware\Content\Blog\BlogEntryDefinition
---------------------------------------------------

 * Primary key mismatch in entity "werkl_blog_entry": Table has PRIMARY KEY (id), but entity definition has PrimaryKey flags on (cms_page_version_id, id). This causes entity hydration to fail silently. Ensure PrimaryKey flags match the database schema exactly.
 * Field media in entity struct is missing in Werkl\OpenBlogware\Content\Blog\BlogEntryDefinition
 * Missing reverse one-to-one association for Werkl\OpenBlogware\Content\Blog\BlogEntryDefinition <-> Shopware\Core\Content\Cms\CmsPageDefinition (cmsPage)
 * Setter "setTags" of Entity "Werkl\OpenBlogware\Content\Blog\BlogEntryEntity" is nullable, but shouldn't allow null as it is a toMany association.


Werkl\OpenBlogware\Content\Blog\BlogEntryTranslation\BlogEntryTranslationDefinition
-----------------------------------------------------------------------------------

 * Column `werkl_blog_entry_translation`.`title` is not nullable
 * Column `werkl_blog_entry_translation`.`slug` is not nullable


Werkl\OpenBlogware\Content\BlogCategory\BlogCategoryTranslation\BlogCategoryTranslationDefinition
-------------------------------------------------------------------------------------------------

 * Column `werkl_blog_category_translation`.`name` is not nullable


                                                                                                                        
 [ERROR] Found 8 errors in 4 entities                                                                                   
                                                                                                                        

I will probably patch these up in my forked version (for my client), therefore I will submit PR for this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions