/**
* @Cycle\Entity()
*/
class Post
{
/**
* @Cycle\Column(type="primary")
*/
public int $id;
/**
* @Cycle\Relation\Embedded(target="Seo")
*/
public Seo $seo;
/**
* @Cycle\Column(type="primary")
*/
public DateTimeImmutable $createdAt;
}
/**
* @Embeddable(columnPrefix="seo_")
*/
class Seo
{
/**
* @Cycle\Column(type="string", name="title", nullable=true)
*/
public ?string $title;
/**
* @Cycle\Column(type="string", name="description", nullable=true)
*/
public ?string $description;
/**
* @Cycle\Column(type="string", name="keywords", nullable=true)
*/
public ?string $keywords;
}
Entities
Generated migration
What i want is that
created_at
should be generated afterSeo
columns, i.e. in this case afterseo_keywords