Hello,
I have noticed that Skipper is not recognizing attributes from parent class in the class that extends it.
Parent class is not @ORM\Entity but has attributes with @ORM\Column, @ORM\ManyToOne and other attribute related annotations.
Doctrine is recognizing those attributes and all columns in tables are created.
For example i have this parent class:
/**
* Class AbstractPerson
* @package AppBundle\Entity
*
* * @ORM\Table(
* indexes={@ORM\Index(name="PersonVatIdIdx", columns={"vatId"}),@ORM\Index(name="PersonNameIdx", columns={"name"})}
* )
*/
abstract class AbstractPerson extends ServiceSubscribersEntity
{
/**
* @ORM\Column(type="string", length=256, nullable=false)
* @Assert\NotBlank(message="Polje je obavezno")
*/
protected $name;
...
And this class that extends it:
/**
* @ORM\Entity
*
*/
class Person extends AbstractPerson
{
/**
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\RelatedPersonType")
* @ORM\JoinTable(
* name="RelatedPersonTypeToPerson",
* joinColumns={@ORM\JoinColumn(name="person_id", referencedColumnName="id", nullable=false)},
* inverseJoinColumns={@ORM\JoinColumn(name="related_person_type_id", referencedColumnName="id", nullable=false)}
* )
*/
protected $relatedPersonType;
...
The problem:
Skipper is not recognizing anything from parent class even though code is OK and Doctrine
creates everything defined in parent class, even indexes defined only in parent class.
Kind regards,
Darko