Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpperCase in meta fields on pageTranslation entity #37

Closed
rzp-789 opened this issue Jan 24, 2022 · 2 comments · Fixed by #67
Closed

UpperCase in meta fields on pageTranslation entity #37

rzp-789 opened this issue Jan 24, 2022 · 2 comments · Fixed by #67

Comments

@rzp-789
Copy link

rzp-789 commented Jan 24, 2022

Problems on Admin in index page with the render of template @SyliusAdmin\Crud/index.html.twig because metaTitle, metaKeywords, metaDescription are mapping with an underscore (meta_title, .... ) Solution is to rename the fields with underscore

<?php

declare(strict_types=1);

namespace App\Entity;

use MonsieurBiz\SyliusCmsPagePlugin\Entity\PageTranslation as BasePageTranslation;
use Doctrine\ORM\Mapping as ORM;

class PageTranslation extends BasePageTranslation
{

    /**
     * @ORM\Column(name="meta_title")
     */
    protected $metaTitle;

    /**
     * ORM\Column(name="meta_keywords")
     */
    protected $metaKeywords;

    /**
     * ORM\Column(name="meta_description")
     */
    protected $metaDescription;


}
@jacquesbh
Copy link
Member

I feel that this issue doesn't longer exist. The mapping is done in src/Resources/config/doctrine/PageTranslation.orm.xml.

@maximehuran
Copy link
Member

It still exists

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants