mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 11:27:34 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			345 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			345 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| 
 | |
| class Invitation extends EntityModel
 | |
| {
 | |
| 	public function invoice()
 | |
| 	{
 | |
| 		return $this->belongsTo('Invoice');
 | |
| 	}
 | |
| 
 | |
| 	public function contact()
 | |
| 	{
 | |
| 		return $this->belongsTo('Contact');
 | |
| 	}
 | |
| 
 | |
| 	public function user()
 | |
| 	{
 | |
| 		return $this->belongsTo('User');
 | |
| 	}	
 | |
| 
 | |
| 	public function getLink()
 | |
| 	{
 | |
| 		return SITE_URL . '/view/' . $this->invitation_key;
 | |
| 	}
 | |
| } |