Skip to content

Instantly share code, notes, and snippets.

View patie's full-sized avatar
🦉

Patrik Patie Gmitter patie

🦉
View GitHub Profile
<?php
namespace Admin\CoreBundle\Entity;
use Symfony\Component\Security\Core\Role\RoleInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
<?php
/**
* Author: Patrik Gmitter <patie@patie.info>
* Date: 4/24/12
*/
namespace Eshop\Model;
use Doctrine\Common\Collections\ArrayCollection;
/**
Doctrine\ORM\Tools\ToolsException
Schema-Tool failed with Error 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "Order" LINE 1: ...17B8A4DF359E4DAB FOREIGN KEY (OrderId) REFERENCES Order (id)... ^' while executing DDL: ALTER TABLE Order_ShippingPackage ADD CONSTRAINT FK_17B8A4DF359E4DAB FOREIGN KEY (OrderId) REFERENCES Order (id) NOT DEFERRABLE INITIALLY IMMEDIATE search►
Caused by ▼
PDOException #42601
@patie
patie / Product.php
Created May 6, 2012 11:12
len objekt pre produkty
<?php
/**
* Author: Patrik Gmitter <patie@patie.info>
* Date: 4/30/12
*/
namespace Patie\Eshop\Store;
class Product extends \Nette\Object
<?php
/**
* Author: Patrik Gmitter <patie@patie.info>
* Date: 4/30/12
*/
namespace Patie\Eshop\Store;
use Nette;
use Nette\Caching\Cache;
<?php
/**
* Author: Patrik Gmitter <patie@patie.info>
* Date: 4/24/12
*/
namespace Model;
use Doctrine\ORM\Mapping as ORM,
Doctrine\ORM\Proxy,
<?php
/**
* Base class for all application presenters.
*
* @author John Doe
* @package MyApplication
*/
abstract class BasePresenter extends Nette\Application\UI\Presenter
{