PHP code example of isom / code-maker

1. Go to this page and download the library: Download isom/code-maker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

isom / code-maker example snippets



namespace YourBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use SBC\CodeMakerBundle\Annotation\CodeMaker;
/**
 * Product
 *
 * @ORM\Table(name="Product")
 * @ORM\Entity(repositoryClass="YourBundle\Repository\ProductRepository")
 * 
 * @CodeMaker(  
 *     displayName="Products",  
 *     codeColumn="id"  
 * )
 */
class Product
{
	/**  
	 * @var string 
	 * @ORM\Id 
	 * @ORM\Column(name="id", type="string", length=255) 
	 */
	private $id;
	
	/**  
	 * @var string 
	 * @ORM\Column(name="field;", type="string", length=255) 
	 */
	private $field;

	/**
	 *
	 *
	 * Getters and setters
	 */
}