This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | use Zend\Form\Element; | |
| use Zend\Form\Form; | |
| $date = new Element\Date('appointment-date'); | |
| $date | |
| ->setLabel('Appointment Date') | |
| ->setAttributes(array( | |
| 'min' => '2012-01-01', | |
| 'max' => '2020-01-01', | |
| 'step' => '1', // days; default step interval is 1 day | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $newProductName = "my product"; | |
| $product = new Product(); | |
| $product->setName($newProductName); | |
| $entityManager->persist($product); | |
| $entityManager->flush(); | |
| echo "Created Product with ID " . $product->getId() . "\n"; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace Blog; | |
| class Module | |
| { | |
| public function getConfig() | |
| { | |
| return include __DIR__ . '/config/module.config.php'; | |
| } | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $this->add(array( | |
| 'type' => 'DoctrineModule\Form\Element\ObjectSelect', | |
| 'name' => 'name', | |
| 'options' => array( | |
| 'label' => 'Dynamic ObjectManager Select', | |
| 'object_manager' => $this->getObjectManager(), | |
| 'target_class' => 'FormDependencies\Entity\SelectOption', | |
| 'property' => 'title', | |
| 'empty_option' => '--- please choose ---' | |
| ), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | AlbumX | |
| config | |
| module.config.php | |
| (data) | |
| (SampleData.sql) | |
| src | |
| AlbumX | |
| Controller | |
| IndexController.php | |
| Entity | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @ORM\ManyToMany(targetEntity="User", mappedBy="myFriends") | |
| * @Annotation\Exclude() | |
| **/ | |
| protected $friendsWithMe; | |
| /** | |
| * @ORM\ManyToMany(targetEntity="User", inversedBy="friendsWithMe") | |
| * @ORM\JoinTable(name="friends", | |
| * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @var boolean | |
| * | |
| * @ORM\Column(name="email_confirmed", type="boolean", nullable=false) | |
| * @Annotation\Type("Zend\Form\Element\Radio") | |
| * @Annotation\Options({ | |
| * "label":"User confirmed email:", | |
| * "value_options":{"1":"Yes", "0":"No"}}) | |
| */ | |
| protected $emailConfirmed; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @var \DateTime | |
| * | |
| * @ORM\Column(name="registration_date", type="datetime", nullable=true) | |
| * @Annotation\Attributes({"type":"datetime","min":"2010-01-01T00:00:00Z","max":"2020-01-01T00:00:00Z","step":"1"}) | |
| * @Annotation\Options({"label":"Registration Date:", "format":"Y-m-d\TH:iP"}) | |
| */ | |
| protected $registrationDate; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @var integer | |
| * | |
| * @ORM\Column(name="state", type="integer", nullable=false) | |
| * @Annotation\Type("Zend\Form\Element\Radio") | |
| * @Annotation\Options({ | |
| * "label":"User Active:", | |
| * "value_options":{"1":"Yes", "0":"No"}}) | |
| */ | |
| protected $state; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @var User\Entity\Language | |
| * | |
| * @ORM\ManyToOne(targetEntity="User\Entity\Language") | |
| * @ORM\JoinColumn(name="language_id", referencedColumnName="id") | |
| * @Annotation\Type("DoctrineModule\Form\Element\ObjectSelect") | |
| * @Annotation\Options({ | |
| * "label":"Language:", | |
| * "empty_option": "Please, choose your language", | |
| * "target_class":"CsnUser\Entity\Language", | 
NewerOlder