Questions tagged [self-reference]

Self-reference is the ability of a program (or logical sentence) to refer to itself, either directly or indirectly.

Self-reference is the ability of a program (or logical sentence) to refer to itself, either directly or indirectly.

Useful Links:

Stanford Encyclopedia 'Self Reference' Entry

Related Tags:

596 questions
0
votes
1 answer

Can an excel cell contain a formula that updates when an integer is entered directly into the cell containing the formula

So specifically I'm writing a test tracking document, when a particular test case fails I want to be able to enter it's bug number into a field and then have that field produce a URL to link to the bug in our database. Currently I am having to use 2…
0
votes
1 answer

Self-Referencing in Ada that is similar to Java "this"?

In Java we can use "this" to self-reference an object. Is there an equivalent in Ada? Or do all parameters need to be passed explicitly?
James
  • 903
  • 7
  • 22
0
votes
1 answer

How to diff and intersect Many-To-Many Self-referencing ArrayCollections

I have Many-To-Many Self-referencing relation in my user entity. // Acme\DemoBundle\Resources\config\doctrine\User.orm.yml Acme\DemoBundle\Entity\User: type: entity repositoryClass: Acme\DemoBundle\Entity\Repository\UserRepository table:…
0
votes
1 answer

How can I refer to a key during object creation in Javascript?

I am trying to create an object with selectors inside. The first one is the context selector which I want to use within the object itself. How can I reference this key within the object? var options = { elements: { …
Johnathan Au
  • 5,244
  • 18
  • 70
  • 128
0
votes
1 answer

Can't save the relation in a self-referencing entity

Im tying to add communication parts to a rootCommunication in my data-fixture, there is no error, but only just NULL in the database field 'root_communication_id'. Why? Parts of my Model 'Communication' /** * Communication * *…
0
votes
1 answer

Selft referencing table in EntityFramework (Insert error)

I have the following entity: public class Category { public virtual long Id { get; set; } public string Name { get; set; } public virtual long ParentId { get; set; } public virtual Category Parent { get; set; } public virtual…
Raheel Khan
  • 14,205
  • 13
  • 80
  • 168
0
votes
2 answers

R: Generate matrix from function

In R I'm interested in the general case to generate a matrix from a formula such as: X = some other matrix Y(i, j) = X(i, j) + Y(i - 1, j - 1) Unfortunately I can't find how to account for the matrix self-referencing. Obviously order of execution…
c z
  • 7,726
  • 3
  • 46
  • 59
0
votes
1 answer

How to setup Doctrine self-referencing, non-unique relationship

I have a Tasks entity with an 'id' and a 'dependency' column. My current set up has 'dependency' in a OneToOne self-referencing relationship with 'id'. The idea is that each task can have a single dependency assigned, however that dependency is not…
TheGremlyn
  • 323
  • 1
  • 3
  • 21
0
votes
1 answer

Complicated Django annotation with self reference

Given the two models: Floor that has a reference to itself called previousFloor which can be null for the first Floor Room which of course can only be in one Floor (but there are multiple rooms in a Floor) I need a query that returns all rooms on…
Martin Flucka
  • 3,125
  • 5
  • 28
  • 44
0
votes
1 answer

How to do friend ORM model in fuelphp

I need to do a self referencing many to many relationship in fuelphp orm model. In the application a user can have other users as friends. I have a users table, and friends table. Users table stores the main information about the user, the friends…
VOid
  • 85
  • 2
  • 13
0
votes
2 answers

Retrieving Parents and Children - Self Referencing Entity

Noob here. I would say I can see the peak of the curve but I still have a ways to go. I have an entity (tblxchangecategories) referencing a categories table: This is related to an entity (tblxchangecategory_hier) referencing a category hierarchy…
John the Ripper
  • 2,389
  • 4
  • 35
  • 61
0
votes
3 answers

Prevent repeating C# code for each control?

I currently code app that at the end should be Football Manager to ProEvolutionSoccer stats converter, but, now, problem is that I am a quiet new in C#, and i have more than 60 numericUpDowns. Each of theese updowns should change colour at certain…
black_hat_cat
  • 147
  • 1
  • 2
  • 10
0
votes
1 answer

Doctrine self referencing entity relationship throws error

I have a self referencing entity in Doctrine but I keep getting the following error when I try to persist them: PHP Catchable fatal error: Object of class Category could not be converted to string in…
Luke
  • 20,878
  • 35
  • 119
  • 178
0
votes
1 answer

Undefined Reference to class static member in static member

I am creating a linked list with self referential class in C++ and I want to have a static pointer of the type Item (Item is the class name) named "startPointer" so that when i call my static member function "free" , it can free up the memory by…
Paramvir Singh Karwal
  • 597
  • 1
  • 10
  • 24
0
votes
2 answers

Class with pointer to object of the same class

I am trying to create class Person with pointers to spouse(Person object) and table of children(Person objects). This class implements marriage(operator+=), divorce(method) and creating new children(operator++): class Person{ private: char*…
elkHunter
  • 55
  • 2
  • 9