Setono / SyliusMailchimpPlugin

Mailchimp integration plugin for Sylius
MIT License
11 stars 14 forks source link

Channel Trait Error #60

Closed wyamout closed 4 years ago

wyamout commented 4 years ago

While installation getting this error

PHP Fatal error:  Trait 'Setono\SyliusMailchimpPlugin\Model\ChannelTrait' not found in /var/www/sylius/src/Entity/Channel/Channel.php on line 19

In Channel.php line 19:

  Attempted to load trait "ChannelTrait" from namespace "Setono\SyliusMailchimpPlugin\Model".
  Did you forget a "use" statement for another namespace?

This is my current Channel.php

<?php
// src/Entity/Channel/Channel.php

declare(strict_types=1);

namespace App\Entity\Channel;

use Sylius\Component\Core\Model\Channel as BaseChannel;
use Setono\SyliusMailchimpPlugin\Model\ChannelInterface as SetonoSyliusMailchimpPluginChannelInterface;
use Setono\SyliusMailchimpPlugin\Model\ChannelTrait as SetonoSyliusMailchimpPluginChannelTrait;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_channel")
 */
class Channel extends BaseChannel implements SetonoSyliusMailchimpPluginChannelInterface
{
    use SetonoSyliusMailchimpPluginChannelTrait;
}

**UPDATE Model files were missing, uploading them manually fixed this.