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
/** | |
* Recupera la entity da utilizzare per memorizzare l'intervista | |
* | |
* @param $interviewId | |
* @param \Doctrine\Common\Persistence\ObjectManager $em | |
* @return object | |
*/ | |
public function findEntity($interviewId, ObjectManager $em) | |
{ | |
$repositoryMap = array( |
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
/** | |
* Recupera la entity da utilizzare per memorizzare l'intervista | |
* | |
* @param $interviewId | |
* @param \Doctrine\Common\Persistence\ObjectManager $em | |
* @return object | |
*/ | |
public function findEntity($interviewId, ObjectManager $em) | |
{ | |
$repositoryMap = array( |
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
/** | |
* @param $sourceFile | |
* @param $destinationFilePath | |
* @throws \RuntimeException | |
* @throws \Exception | |
*/ | |
private function doConvert($sourceFile, $destinationFilePath) | |
{ | |
$output = array(); | |
exec("unoconv --output=\"" . $destinationFilePath . "\" \"" . $sourceFile . "\"", $output); |
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 Charlie\RecruitmentBundle\Tests\Functional; | |
use Charlie\FixtureBundle\Test\FixtureWebTestCase; | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: ftassi | |
* Date: 17/01/13 |
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
$form->add( | |
$bundle_key, | |
'choice', | |
array( | |
'label' => 'Bundle languages ' .$bundle_key, | |
'choices' => array( | |
'' => 'not defined', | |
'it' => 'it', | |
'en' => 'en', | |
), |
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 | |
$sinceDate = '11/01/2012'; // Change to fit your needs | |
$testCommand = 'phpunit src/Symfony/Component/Finder'; // Change to fit your needs | |
$revlist = array(); | |
exec("git log --since=$sinceDate --branches=master --reverse --pretty=%H | cat", $revlist); | |
foreach ($revlist as $commit) { |
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
#!/bin/bash | |
mkdir /tmp/findtest | |
mkdir /tmp/findtest/.git | |
mkdir /tmp/findtest/.foo | |
touch /tmp/findtest/.foo/.bar | |
touch /tmp/findtest/.bar | |
touch /tmp/findtest/test.py | |
mkdir /tmp/findtest/foo | |
touch /tmp/findtest/foo/bar.tmp | |
touch /tmp/findtest/test.php |
NewerOlder