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/sh | |
bundle=$1 | |
entity=$2 | |
php app/console doctrine:mapping:import --filter=$entity $bundle xml | |
php app/console doctrine:mapping:convert --force --filter=$entity annotation ./src | |
php app/console doctrine:generate:entities $bundle:$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 | |
<#assign licenseFirst = "/* "> | |
<#assign licensePrefix = " * "> | |
<#assign licenseLast = " */"> | |
<#include "${project.licensePath}"> | |
<#if namespace?? && namespace?length > 0> | |
<#assign strings = namespace?split("\\")> | |
<#assign package = strings[0]> | |
<#assign category = namespace?substring(namespace?index_of("\\") + 1)> |
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 | |
//Based on http://bavotasan.com/2011/convert-hex-color-to-rgb-using-php/ | |
class hex2rgb { | |
private static $_cache = array(); | |
private function __construct() { | |
} |
NewerOlder