Skip to content

Commit

Permalink
Update PicoEntityGenerator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kamshory committed Nov 20, 2024
1 parent 6c45fa6 commit cba2ebf
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Generator/PicoEntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,19 @@ public function generate($nonupdatables = null)
use MagicObject\MagicObject;
/**
* ' . $className . ' represents the entity for the table ' . $picoTableName . '.
* You can join this entity to other entities using the @JoinColumn annotation.
* The '.$className.' class represents an entity in the "'.$picoTableName.'" table.
*
* This entity maps to the "'.$picoTableName.'" table in the database and supports ORM (Object-Relational Mapping) operations.
* You can establish relationships with other entities using the JoinColumn annotation.
* Ensure to include the appropriate "use" statement if related entities are defined in a different namespace.
*
* For detailed guidance on using the MagicObject ORM, refer to the official tutorial:
* @link https://github.com/Planetbiru/MagicObject/blob/main/tutorial.md#entity
* @package ' . $this->baseNamespace . '
*
* @package '.$this->baseNamespace.'
* @Entity
* @JSON(property-naming-strategy=SNAKE_CASE, prettify=' . $prettify . ')
* @Table(name="' . $picoTableName . '")
* @JSON(property-naming-strategy=SNAKE_CASE, prettify='.$prettify.')
* @Table(name="'.$picoTableName.'")
*/
class ' . $className . ' extends MagicObject
{
Expand Down

0 comments on commit cba2ebf

Please sign in to comment.