Skip to content

Instantly share code, notes, and snippets.

View econic's full-sized avatar

Aimo Künkel econic

  • etg24 GmbH
  • Germany
View GitHub Profile
@econic
econic / Foo
Created November 4, 2013 13:47
How to ignore the enablefields in an extbase 1:1 relation
View Foo
<?php
namespace Example\Key\Domain\Model;
class Foo {
/**
* BarRepository
*
* @var \Example\Key\Domain\Repository\BarRepository
@econic
econic / Category.php
Created July 5, 2012 10:25
Fake bidirectional MM table
View Category.php
class Tx_ext_Domain_Model_Category extends Tx_Extbase_DomainObject_AbstractEntity {
/**
* returns all the FAQs linked with this Category
*
* @return Tx_Extbase_Persistence_ObjectStorage<Tx_ext_Domain_Model_Faq>
*/
public function getFaqs() {
return t3lib_div::makeInstance('Tx_ext_Domain_Repository_FaqRepository')->byCategory($this);
}