This file contains 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 Application\Form\View\Helper; | |
use Zend\Form\View\Helper\FormText; | |
use Zend\Form\ElementInterface as ElementInterface; | |
class AbstractFormAutocomplete extends FormText | |
{ | |
protected $foo; |
This file contains 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 | |
/** | |
* Lazy load proxies always contain an instance of Doctrine’s EntityManager and all its dependencies. | |
* Therefore a var_dump() will possibly dump a very large recursive structure which is impossible to render and read. | |
* You have to use Doctrine\Common\Util\Debug::dump() to restrict the dumping to a human readable level. | |
* Additionally you should be aware that dumping the EntityManager to a Browser may take several minutes, | |
* and the Debug::dump() method just ignores any occurrences of it in Proxy instances. | |
*/ | |
#var_dump($entity); // will possibly dump a very large recursive structure which is impossible to render and read |
This file contains 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 Application\Form; | |
use Zend\Form\Form; | |
use Zend\ServiceManager\ServiceLocatorAwareInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
class CreateContractForm extends Form | |
implements ServiceLocatorAwareInterface | |
{ |
This file contains 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 | |
$rawXml = '<foo><bar>Baz</bar></foo>'; | |
$response = new \Zend\Http\Response(); | |
// Instead of header("Content-type: text/xml; charset=utf-8") use: | |
$response->getHeaders()->addHeaderLine('Content-Type', 'text/xml; charset=utf-8'); | |
$response->setContent($rawXml); | |
return $response; |
This file contains 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 Application\Assertions; | |
use ZfcRbac\Assertion\AssertionInterface; | |
use ZfcRbac\Service\AuthorizationService; | |
class CanEditContractAssertion implements AssertionInterface | |
{ | |
/** |
This file contains 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 Plusquam\Bundle\ContractBundle\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
class BundleController extends Controller | |
{ | |
public function egzAction() | |
{ |
This file contains 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 Acme\DemoBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Gedmo\Translatable\Translatable; | |
/** | |
* @ORM\Entity |
This file contains 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
-- | |
-- Database: `webdevilopers` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `contracts` | |
-- |
This file contains 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
SELECT COUNT(DISTINCT a.angebot_id), | |
ash.angebot_status_datum, | |
( | |
SELECT MAX(ash2.angebot_status_datum) | |
FROM angebot_status_historie ash2 | |
WHERE ash2.angebot_id = a.angebot_id | |
) AS current_state | |
FROM | |
angebot a | |
JOIN angebot_status_historie ash USING (angebot_id) |
This file contains 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 | |
/** | |
* Offer | |
* | |
* @ORM\Table(name="angebot", indexes={ | |
* ... | |
* }) | |
* @ORM\Entity | |
*/ |
OlderNewer