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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:22:13+00:00 2026-05-31T16:22:13+00:00

I am working on a database model that will hold meta data about a

  • 0

I am working on a database model that will hold meta data about a file and the location of a file on s3. I would like to set up this model to use the aws bundle https://github.com/Cybernox/AmazonWebServicesBundle/ so that when a user uploads a file and some meta data I can take the file move it to s3 and store the file location in the database. It seems it would be the driest implementation to move the file to s3 in the model and save the new url there, this way the method can be used by multiple controllers. But I cannot figure out how to gain access to this service inside the model since the service container is not available. Any advice? I could inject the service from the controller but this seems like it would get redundant.

Thanks,
CG

  • 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-31T16:22:15+00:00Added an answer on May 31, 2026 at 4:22 pm

    The model should not know anything about the environment using it. If you want to set something in model, do it in a controller, service or Doctrine listener.

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

Sidebar

Related Questions

I am working with a Django model that looks like this: class Subscription(models.Model): user
I am currently working on a pyramid system that uses sqlalchemy. This system will
I have an ADO .Net Entity Data Model for my database. In this Model
Being stuck with a legacy database schema that no longer reflects your data model
I'm using Python/Django, but this is more about the data model and how I
I am working on a database application that runs on various independent servers. Each
I'm working on a database that needs to represent computers and their users. Each
I'm working on a database in SQL Server 2000 that uses a GUID for
I have never designed a database/data-model/schema from scratch, especially for a web-application. In some
I am working on an old database, that i do not want to touch

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.