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 6021593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:44:10+00:00 2026-05-23T03:44:10+00:00

Symfony uses the schema.yml to create a module for every db table. So consider

  • 0

Symfony uses the schema.yml to create a module for every db table. So consider the users table can quickly be modified in the users module with a simple example:

$users = new users;
$id = $users->getUserId();

That I get. However, what if I am in another module with its own db table? How can I access user data from there?

Side question: Is there a good Mac IDE to find all the variables accessible from a certain module? I am picking up a project, and am a bit confused with structuring and variable availability/passing. Any tools/tips?

  • 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-23T03:44:11+00:00Added an answer on May 23, 2026 at 3:44 am

    The schema.yml is used to generate your MODEL objects, not modules. Your model defines your project’s underlying data structure, and your modules group together actions and views.

    It sounds like you’re using Symfony generated admin modules, is this correct? If so, please be more specific as to where you want to make use of the different models. Is it in the list? The edit form? etc..

    Generally speaking, your model objects are accessible from anywhere within your project – they are not limited to a specific module or even an app (frontend, backend, for example). So it’s possible to access many models from within one action. In your case you could try Doctrine::getTable('Users')->find(USER_ID_HERE) which would fetch a specific Users object.

    Your example code has an error in it. It should be $users = new users();
    Once fixed, that code should work anywhere from within your application.

    As for IDEs, check out Netbeans. Its auto-completion and code reflection is pretty good.

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

Sidebar

Related Questions

im using symfony with doctrine, and Im trying to generate the schema yml file
How can I create a new project that only uses the Symfony2 Console component?
I have a Symfony 1.2.4 application, taken and modified from the Symfony sandbox application
we using symfony 1.0. We have an module work with Propel objects. The sql-querys
How can I make symfony completion in bash? Have ubuntu 9.10. It's hard to
I am using Symfony 1.3.2 and I have a page that uses a partial
I'm writing an open source application uses some Symfony components, and using Symfony Console
I'm attempting to do something using Silex (which uses the Symfony routing component -
I am running Symfony 1.2 and utilizing the object helper to create some inline
I have a symfony module for my GenericImport class. Rather than the default method

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.