Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:34:40+00:00 2026-05-27T08:34:40+00:00

Basically, I need to create a behavior that adds a table and a one-to-many

  • 0

Basically, I need to create a behavior that adds a table and a one-to-many relation to a relation. For example:

Event:
  columns: ~
  actAs:
     Recurrent: ~

Which would be the same as:

Event:
  columns: ~

EventRecurrent:
  columns:
    event_id: integer(4)
  relations:
    Event: 
      local: event_id
      foreign: id
      foreignAlias: RecurrentDates

This is quite the same as what I18n template does, thought it doesn’t generate files, whereas I need to have EventRecurrent and EventRecurrentTable classes generated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:34:40+00:00Added an answer on May 27, 2026 at 8:34 am

    I think this is so complex, you wont find an answer here on Stack Overflow: you will need very deep understanding of how Doctrine works to achieve this.

    Since you want to be able to to modify the tables, I think you’re faster off by just defining the models in your model.

    If this is not acceptable for your use case, I’d just dive into it: You’ll need your own Doctrine_Template, probably is Doctrine_Template_I18n a good place to start. This Doctrine_Template_I18n in turn uses the Doctrine_I18n class which extends Doctrine_Record_Generator.
    If you look at the options of this generator, there’s an option “generateFiles”: setting this to true probably does what you want. But you’ll need a lot of trial and error, probably 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I need a hosted solution, where one can create an account for a
I basically need to create a anchor that will navigate to a different port
Basically I need to create a quickfix buffer listing all lines that match a
I (Basically) need to create a background timer on iOS 4 that will allow
Basically I need to create output TOP table where users are arranged by comparing
I have a need to basically create a matrix of values in my Silverlight
basically need to change the value that - admin_url() returns any idea?
I have a need to create an integer value to a specific power (that's
Basically i just need to create an application (with sort of user access) which
I need to create an image badge in Cocoa. Basically I need to take

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.