Génère une entité Doctrine avec repository selon principes Elegant Objects
Génère une entité Doctrine avec repository selon principes Elegant Objects.
Cette skill crée une entité Doctrine complète respectant les principes Elegant Objects, avec son repository et son interface.
create()finaltoLog() pour LoggableInterfacefinalUse skill framework:make:entity
Vous serez invité à fournir :
EntityName: Product
Properties:
- name: string
- description: string
- price: float
- stock: int
- isActive: bool
Génère :
// src/Entity/Product.php
final class Product implements LoggableInterface, DatabaseEntityInterface, ...
{
use DatabaseTrait;
use NullTrait;
use DependencyInjectionTrait;
private function __construct(
#[ORM\Id]
#[ORM\Column(type: 'uuid')]
private Uuid $id,
#[ORM\Column(type: 'string')]
private string $name,
// ...
) {}
public static function create(Uuid $id, string $name, ...): self
{
return new self(id: $id, name: $name, ...);
}
public function id(): Uuid { return $this->id; }
public function name(): string { return $this->name; }
// ...
}
src/
├── Entity/
│ └── {EntityName}.php
└── Repository/
├── {EntityName}Repository.php
└── {EntityName}RepositoryInterface.php
framework:make:contracts si absents)atournayre/framework installéstring, int, float, boolUuid (Symfony\Component\Uid\Uuid)\DateTimeImmutablearraynpx skills add atournayre/framework:make:entity下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer