[TYPO3-mvc] Extbase & FAL in TYPO3 6.0.4

Roland most.wanted at gmx.at
Tue Mar 12 16:59:57 CET 2013


hi everybody,

i try to use FAL with Extbase in TYPO3 6.0.4 - is there something wrong 
with this domain model class?

--- quote ---
class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {

   /**
    * image
    *
    * @var 
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Core\Resource\FileReference>
    */
   protected $image;

   /**
    * __construct
    *
    * @return Product
    */
   public function __construct() {
     $this->initStorageObjects();
   }

   /**
    * Initializes all ObjectStorage properties.
    *
    * @return void
    */
   protected function initStorageObjects() {
     $this->image = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
   }
	
   /**
    * Returns the image
    *
    * @return 
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Core\Resource\FileReference>
    */
   public function getImage() {
     return $this->image;
   }

}
--- /quote ---

i get a "You have an error in your SQL syntax" exception.

i read the news on the last Extbase code sprint im 2013-02:

--- quote ---
Compatibility to models of the File Abstraction Layer (FAL)

It was Helmut and Andreas’s task to improve the interaction between FAL 
and Extbase. Some annoying and blocking bugs were fixed, and 
improvements were started. As an example there will be different Extbase 
bootstrap mechanisms for backend and command-line (CLI) context in the 
future. FAL is for Extbase 'just another one-to-many relation'. Due to 
this work on FAL some bugs in handling relations in TYPO3 CMS were 
solved as well, which was a very welcome side-effect.
--- /quote ---

are there somewhere some code snippets where to look how we should 
handle these FAL one-to-many relations?

--- quote ---
FAL is for Extbase 'just another one-to-many relation'.
--- /quote ---

kind regards

roland


More information about the TYPO3-project-typo3v4mvc mailing list