[TYPO3-mvc] Extbase kickstarter not creating repository class
Søren Malling
soren.malling at gmail.com
Wed Feb 17 11:47:07 CET 2010
Hi Christine,
and thanks for you getting back :-)
I found out that no repository was created (not even a directory) so I
created the repository file my self with the BlogRepository.php file
as example (I've followed your advise and created a new model with
capital start letter)
class Tx_Groupmembers_Domain_Repository_Members extends
Tx_Extbase_Persistence_Repository {
}
But still same error occures;
The repository class "Tx_Groupmembers_Domain_Model_Members" does not exist.
But when i look at the class name mentioned in the error, it's not the
same as the normal repository naming convention.
In Classes/Domain/Model/Members.php I got a class with the name
class Tx_Groupmembers_Domain_Model_Members extends
Tx_Extbase_DomainObject_AbstractEntity {
[removed]
}
But does that class have anything to do with my problem?
Regards,
Søren
On Tue, Feb 16, 2010 at 10:39 PM, Christine Gerpheide
<cgerpheide at gmail.com> wrote:
> Well is the repository created when you save it? I recall this working fine
> for me in the kickstarter, with the scaffolding. If it's not, for whatever
> reason, then you can create a new repository class manually, following the
> folder and naming structure of the blog_example extension.
>
> Christine
>
> 2010/2/16 Søren Malling <soren.malling at gmail.com>
>
>> Hi Christine,
>>
>> I'm not much into the Domain Driven Design concepts, yet so some of
>> the used terms are still new to me.
>>
>> I already checked the "Is aggregate root" for the members model (I've
>> taken notice of using capital start letter and will do so in my final
>> production) but as mentioned the error occures.
>>
>> I've taken a screenshot of the model objects and hope that someone can
>> see the problem
>>
>> http://img534.imageshack.us/i/extbasekickstartmodel.png/
>>
>> Regards and thanks,
>>
>> Søren
>>
>> On Tue, Feb 16, 2010 at 3:03 PM, Christine Gerpheide
>> <cgerpheide at gmail.com> wrote:
>> > Hi Soren,
>> >
>> > In the kickstarter, did you check the box "is aggregate root" inside the
>> > member model? This tells the kickstarter to create a repository (it's a
>> > domain driven design concept). It's also good practice to make the class
>> > name "Member" instead of "member" with a lowercase m.
>> >
>> > Christine
>> >
>> > 2010/2/16 Søren Malling <soren.malling at gmail.com>
>> >
>> >> Hi,
>> >>
>> >> Just created a new extbase plugin with the kickstarter with two
>> >> models, districts and members. But i get the following error in the
>> >> frontend
>> >>
>> >> Exception
>> >>
>> >> The repository class "Tx_Groupmembers_Domain_Model_members" does not
>> exist.
>> >>
>> >> The interesting part is, based on the videocast regarding scaffolding
>> >> I managed to create a plugin with a single model, but in this case i
>> >> got two models where the members model have a relation to the
>> >> districts model.
>> >>
>> >> A file named "members.php" exists in Classes/Domain/Model/ with the
>> >> class name mentioned above.
>> >>
>> >> This is my first extbase try, so maybe someone can point me to where
>> >> to look for a solution?
>> >>
>> >> Regards,
>> >>
>> >> Søren
>> >> _______________________________________________
>> >> TYPO3-project-typo3v4mvc mailing list
>> >> TYPO3-project-typo3v4mvc at lists.typo3.org
>> >>
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>> >>
>> > _______________________________________________
>> > TYPO3-project-typo3v4mvc mailing list
>> > TYPO3-project-typo3v4mvc at lists.typo3.org
>> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
>>
>>
>> --
>> Officially Certified TYPO3 Integrator
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list