Skip to content

Commit

Permalink
Add a field to trigger ignores in test
Browse files Browse the repository at this point in the history
Adding this field to the test suit triggers the ignored flag for
Doctrine fields.
  • Loading branch information
dgrothaus-mc committed Jul 31, 2024
1 parent 081dfde commit 4c88aa7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/Gedmo/Translatable/Fixture/PersonTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Gedmo\Tests\Translatable\Fixture;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation;
use Gedmo\Translatable\Entity\Repository\TranslationRepository;
Expand All @@ -33,4 +34,30 @@
#[ORM\UniqueConstraint(name: 'lookup_unique_idx', columns: ['locale', 'object_Class', 'foreign_key', 'field'])]
class PersonTranslation extends AbstractTranslation
{
/**
* @ORM\Column (
* name: 'full_name',
* type: Types::STRING,
* length: 256,
* nullable: true,
* insertable: false,
* updatable: false,
* generated: 'ALWAYS'
* )
*/
#[ORM\Column(
name: 'full_name',
type: Types::STRING,
length: 256,
nullable: true,
insertable: false,
updatable: false,
generated: 'ALWAYS'
)]
protected ?string $fullName = null;

public function getFullName(): ?string
{
return $this->fullName;
}
}

0 comments on commit 4c88aa7

Please sign in to comment.