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

  • Home
  • SEARCH
  • 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

I'm working on converting a rather large (but somewhat simple) app from Symfony to
I've developed an application which uses the Symfony 2 framework. The application code resides
Using symfony framework, which code is best to query database table to check if
In Symfony, I use Doctrine_Query to query the database $q = Doctrine_Query::create() ->from('User u')
In symfony 2.0, how to create a drop down list using one-to-one association in
I have a symfony 1.4 project with the single application frontend . This application
Soon Symfony 2.0 will release and i have visited its website i.e www.symfony.com, but
Since Symfony 1.x's admin generator , I found this kind of tool really useful
Using Symfony 1.3 I have a normal form-filter that is used to filter values
I have the following tables customers cust_id cust_name 1 a company 2 a company

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.