PostField
Class. It extends Field.
A field of a meta class that refers to a post of a post class (?Venue), stored as its ID; no post is stored as 0
or not at all.
Constructor
Methods
equals()
Matches posts whose field refers to $post. Throws an InvalidArgumentException for a post of another post class or a post that has not been saved yet.
Returns Condition
getClass()
The class the field belongs to.
Returns class-string
getField()
The name of the field: the name of the constructor parameter.
Returns string
in()
Matches posts whose field refers to one of $posts. Throws an InvalidArgumentException for a post of another post class or a post that has not been saved yet, or if no post is given.
Returns Condition
isNotNull()
Posts with a post in the field.
Returns Condition
isNull()
Posts without a post in the field.
Returns Condition
notIn()
Matches posts whose field refers to none of $posts, including posts without a post in the field. Throws an InvalidArgumentException for a post of another post class or a post that has not been saved yet, or if no post is given.
Returns Condition