Skip to main content

References Between Entities

  • Chapter
  • First Online:
PHP Persistence
  • 945 Accesses

Abstract

Entities usually are part of a bigger, interconnected object graph. They have references to other entities. A User holds references to its Posts, while a Post references a Category which references back to the User, who (in turn) sets up the Category, and so forth. As we will see, there are many different ways to establish connections between entities. Connections are characterized by the number of items they connect and the association’s direction. Let’s take a look!

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 24.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Michael Romer

About this chapter

Cite this chapter

Romer, M. (2016). References Between Entities. In: PHP Persistence. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2559-2_6

Download citation

Publish with us

Policies and ethics