Skip to content

Instantly share code, notes, and snippets.

Raul Fraile raulfraile

Block or report user

Report or block raulfraile

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5607655
<?php
namespace Psr\Log;
/**
* Describes a logger instance
*/
interface LoggerInterface
{
/**
View gist:4569112
En estos momentos no podemos atenderle. Por favor vuelva a intentarlo pasado unos minutos. Disculpe las molestias.
@raulfraile
raulfraile / gist:4216565
Created Dec 5, 2012
Ladybug expanded by default
View gist:4216565
raul_fraile_ladybug:
general:
expanded: true
@raulfraile
raulfraile / composer_platform.txt
Created Nov 9, 2012
composer show --platform
View composer_platform.txt
$ composer show --platform
platform:
ext-apc [3.1.9] : The apc PHP extension
ext-bcmath [0] : The bcmath PHP extension
ext-bz2 [0] : The bz2 PHP extension
ext-ctype [0] : The ctype PHP extension
ext-curl [0] : The curl PHP extension
ext-date [5.3.15] : The date PHP extension
ext-dom [20031129] : The dom PHP extension
ext-ereg [0] : The ereg PHP extension
View gist:2635353
$loader = new Twig_Loader_Filesystem('.'); // folder where templates are located
@raulfraile
raulfraile / gist:2585123
Created May 3, 2012
LiipFunctionalTestBundle ODM fixtures
View gist:2585123
Doctrine\ORM\Mapping\MappingException: Class Tueddy\TueddyBundle\Document\TimelineEvent is not a valid entity or mapped super class.
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/MappingException.php:147
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DriverChain.php:80
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:293
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php:269
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:1490
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:1468
/Users/raulfraile/Sites/tueddy/trunk/app/symfony/vendor/doctrine/lib/Doctrine/ORM/EntityManager.php:496
@raulfraile
raulfraile / gist:2378458
Created Apr 13, 2012
FOSRestBundle new branch
View gist:2378458
PHP Fatal error: Declaration of FOS\RestBundle\Routing\Loader\RestRouteLoader::setResolver() must be compatible with that of Symfony\Component\Config\Loader\LoaderInterface::setResolver() in [...]/symfony/vendor/bundles/FOS/RestBundle/Routing/Loader/RestRouteLoader.php on line 24
View gist:1893666
/**
* @ORM\OneToMany(targetEntity="Hija", mappedBy="padre", cascade={"persist", "remove"})
*/
private $hijas;
View gist:1887983
/**
* @var Padre
*
* @ORM\ManyToOne(targetEntity="Padre")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="padre_id", referencedColumnName="id")
* })
*/
private $padre;
@raulfraile
raulfraile / gist:1887653
Created Feb 22, 2012
Colecciones en formularios de Symfony
View gist:1887653
/* Form hijo */
<?php
namespace Acme\Bundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class HijoType extends AbstractType
You can’t perform that action at this time.