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
/** | |
* Gets platforms | |
* | |
* @return \Doctrine\Common\Collections\Collection | |
*/ | |
public function getPlatforms() | |
{ | |
if ($this->platforms) { | |
return $this->platforms; | |
} |
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
{ | |
"name": "symfony/framework-standard-edition", | |
"license": "MIT", | |
"type": "project", | |
"description": "The \"Symfony Standard Edition\" distribution", | |
"autoload": { | |
"psr-0": { "": "src/" } | |
}, | |
"require": { | |
"php": ">=5.3.3", |
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
In InvoicingClients: | |
/** | |
* @var ArrayCollection | |
* | |
* @ORM\ManyToMany(targetEntity="Customer", mappedBy="invoicingClients") | |
* @ORM\JoinTable( | |
* name="invoicing_clients_customers", | |
* joinColumns={@ORM\JoinColumn(name="client_id", referencedColumnName="id")}, | |
* inverseJoinColumns={@ORM\JoinColumn(name="customer_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
<?php | |
// florin 3/13/14 12:12 PM | |
namespace Wyzbiz\Bundle\MainBundle\Form\Type; | |
use Sonata\AdminBundle\Form\DataTransformer\ModelsToArrayTransformer; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
use Symfony\Component\Form\FormBuilderInterface; |
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 | |
// florin 3/13/14 12:12 PM | |
namespace Wyzbiz\Bundle\MainBundle\Form\Type; | |
use Sonata\AdminBundle\Form\DataTransformer\ModelsToArrayTransformer; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
use Symfony\Component\Form\FormBuilderInterface; |
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 | |
// florin 3/13/14 12:12 PM | |
namespace Wyzbiz\Bundle\MainBundle\Form\Type; | |
use Sonata\AdminBundle\Form\DataTransformer\ModelsToArrayTransformer; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
use Symfony\Component\Form\FormBuilderInterface; |
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 | |
// florin 3/25/14 2:16 PM | |
namespace Wyzbiz\Bundle\MainBundle\Form\Extension; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\FormView; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\PropertyAccess\PropertyAccess; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
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 'SonataAdminBundle:Form:form_admin_fields.html.twig' %} | |
{% block sonata_type_model_list_widget %} | |
test | |
{% endblock %} |
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
public function load(array $configs, ContainerBuilder $container) | |
{ | |
$configuration = new Configuration(); | |
$config = $this->processConfiguration($configuration, $configs); | |
$resources = $container->hasParameter('twig.form.resources') ? $container->getParameter('twig.form.resources') : array(); | |
$resources[] = 'WyzbizMainBundle:Form:fields.html.twig'; | |
$resources[] = 'WyzbizMainBundle:Form:type_model_list_multiple.html.twig'; | |
$container->setParameter('twig.form.resources', $resources); |
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
{% if admin.hasroute('validate') %} | |
{{ admin.generateObjectUrl('validate', object) }} |
OlderNewer