[TYPO3-ect] Typo3 and Propel / Symfony Integration
Michael Knoll
mimi at kaktusteam.de
Fri Nov 16 00:26:22 CET 2007
Hi list,
I just got Propel to work as a ORM for my extension - project. To make
it a "real" extension, there needs to be a lot of wrapping done before.
I try to figure out some problems:
- Transforming of TCA to Propel XML Schema:
TCA offers other and more complex data structures than Propel does. The
biggest problem for me at the moment are the f*#+*%$ M:N relations
realized with a blob field... damn it! There seems to be a solution
which enables propel to generate the xml structure out of a given
database-schema. This way could work, but you can't deploy you extension
very well then, as you need a database schema to generate Propel XML to
generate Propel classes but you get your database only after the
installation is done.
The way of creating Data - specific Propel classes only during
development and shipping them inside the extension package could be
another possibility to avoid these problems.
- Use of DBAL
Propel comes with its own DB Abstraction layer (Creole). You therefore
cannot use the Typo3 Abstraction Layer for your extensions. I'm not sure
whether this is really a big problem or not, as you get a very powerful
DBAL with Creole.
- Installation of PHING and other PEAR packages
For running Propel you need some other packages, which needed to be
packed into an extension or at least which should be installed via the
Pear Installer. For Typo3 users who don't have the possibility to do
that, the extensions build up using propel won't run.
- Duplicate Configuration
At the moment I need a second conf file specifying my DB configuration
for Propel. Of course you can autogenerate those files from Typo3 Conf,
but they still exist twice, which is kind of a ugly thing.
- Integration in lib/div or COOL
As lib/div uses tx_lib_object objects as "Model-Objects" there needs to
be a little adaption to make Propel Objects work with that extension.
Perhaps Elmar could give me some advice on how to make the two worlds
run together, as I would like to use lib/div for all the other parts.
So far - my thoughts about that. Perhaps somebody else has tried this
combination and can exchange some experience. I'm looking forward to
hear from you!
Greez
Mimi
stefano cecere wrote:
> any news about Symfony and Typo3?
>
> i am about to try it (i need a really good RAD framework to develop
> Typo3 extensions..
> i know Daniel Brun did something already working.. but no news :(
>
> ciao!
> stefano
>
>
> Elmar Hinz wrote:
>> Ryan Hayle wrote:
>>> Hi all,
>>>
>>> I'm new to Typo3 and this list. I've been looking through the
>>> archives and have seen a few discussions here about potential
>>> integration of Typo3 and Propel and/or Symfony and am very interested
>>> in this subject. Since I discovered Symfony about 8 months ago, I've
>>> used it almost exclusively for all of my web development, and I
>>> really like it. For my current project, I'm working with Typo3,
>>> which is great in many other ways however not nearly as easy to
>>> develop in as Symfony. I'd love to see some integration between the
>>> two.
>>>
>>> If anyone has done any work on this subject, please let me know. I
>>> would be very interested in pushing this forward and contributing
>>> what I can to do this.
>>>
>>> Thanks,
>>> Ryan
>>
>>
>> Hello Ryan,
>>
>> you are right that the archive shows, that several people are
>> interested in
>> this.
>>
>> I would propose that you volunteer as a leader for a symfony/propel
>> research team. I few people will sureley join in to find out how far
>> propel/symfony could be integrated into / or cooperate with TYPO3. I
>> think
>> of Michael Scharkow, Jan-Hendrik Heuing and maybe eveb Robert Lemke,
>> because there is a lot to learn for TYPO3 5.x.
>>
>> Levels of cooperation to test:
>>
>> * side by side setup with a bridge to exchange information
>> * integration of symphony/propel as an extension
>> * concept how far the core could be moved upon it
>>
>> You would organize your team with virtual conferences by email, skype,
>> chat, whatever works best for you. You already find a little corner for
>> propel on our wiki page:
>>
>> http://wiki.typo3.org/index.php/Extension_coordination_team
>>
>> Regards
>>
>> Elmar
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
More information about the TYPO3-team-extension-coordination
mailing list