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 | |
abstract class DoctrineRepository extends \Doctrine\ORM\EntityRepository | |
{ | |
public function add($entity) | |
{ | |
$this->checkEntity($entity); | |
$this->_em->persist($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
<?php | |
class EntitiesList | |
{ | |
public $obj; | |
public $items = array(); | |
/** | |
* @assert:NotBlank() | |
*/ |
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 | |
use Biplane\CoreBundle\Model\ValidableInterface; | |
use Biplane\CoreBundle\Model\Exception\ValidateException; | |
class User implements ValidableInterface | |
{ | |
private $name; | |
private $email; |
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 | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
class PersonFormType extends AbstractType | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder |
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 | |
class FooSetType extends \Doctrine\DBAL\Types\Type | |
{ | |
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) | |
{ | |
return "SET('one','two','three') NOT NULL"; | |
} | |
public function getName() |
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
// Callbacks | |
// --------- | |
// A simple way of managing a collection of callbacks | |
// and executing them at a later point in time, using jQuery's | |
// `Callbacks` object. | |
Marionette.Callbacks = function(){ | |
this.callbacks = $.Callbacks("once memory"); | |
}; |
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
App.module("FooModule.Bar", { | |
startWithApp: false, | |
define: function() { | |
// Code of submodule | |
} | |
}); |
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
vagrant : INFO global: Vagrant version: 2.0.1 | |
строка:1 знак:1 | |
+ vagrant up --debug 2> debug.log | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.0.1:String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
INFO global: Ruby version: 2.4.2 | |
INFO global: RubyGems version: 2.6.13 |