I
I
Igor2021-10-28 12:11:09
Doctrine ORM
Igor, 2021-10-28 12:11:09

Doctrine entity table description documentation generator?

Colleagues, welcome.

Is there a library in nature that would allow generating documentation from entity classes?

For example, there is an entity.

<?php

namespace Src\Entity;

use Doctrine\ORM\Mapping as ORM;
use Src\Repository\AutodialerLogsRepository;

/**
 * Журнал автообзвона.
 *
 * @ORM\Entity(repositoryClass=AutodialerLogsRepository::class)
 * @ORM\Table(name="autodialer_logs")
 *
 * @author Igor Popryadukhin <example@gmail.com>
 */
class AutodialerLogs
{
    /**
     *
     * @var int|null
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private ?int $id;

    /**
     * Организация
     *
     * @var Organization|null
     * @ORM\ManyToOne(targetEntity="Organization")
     */
    private ?Organization $organization;

    /**
     * Проект
     *
     * @var Project|null
     * @ORM\ManyToOne(targetEntity="Project")
     */
    private ?Project $project;

    /**
     * Владелец (пользователь системы)
     *
     * @var User|null
     * @ORM\ManyToOne(targetEntity="User", inversedBy="contacts", fetch="EAGER")
     */
    private ?User $owner;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question